Changeset 65919 in webkit
- Timestamp:
- Aug 24, 2010 11:37:32 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65918 r65919 1 2010-08-24 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Deploy adoptPtr in WebCore/editing 6 https://bugs.webkit.org/show_bug.cgi?id=44501 7 8 * editing/Editor.cpp: 9 (WebCore::Editor::Editor): 10 * editing/TextIterator.cpp: 11 (WebCore::plainTextToMallocAllocatedBuffer): 12 1 13 2010-08-24 Adam Barth <abarth@webkit.org> 2 14 -
trunk/WebCore/editing/Editor.cpp
r65912 r65919 998 998 Editor::Editor(Frame* frame) 999 999 : m_frame(frame) 1000 , m_deleteButtonController( new DeleteButtonController(frame))1000 , m_deleteButtonController(adoptPtr(new DeleteButtonController(frame))) 1001 1001 , m_ignoreCompositionSelectionChange(false) 1002 1002 , m_shouldStartNewKillRingSequence(false) 1003 1003 // This is off by default, since most editors want this behavior (this matches IE but not FF). 1004 1004 , m_shouldStyleWithCSS(false) 1005 , m_killRing( new KillRing)1005 , m_killRing(adoptPtr(new KillRing)) 1006 1006 { 1007 1007 } -
trunk/WebCore/editing/TextIterator.cpp
r65468 r65919 2224 2224 bufferLength = 0; 2225 2225 typedef pair<UChar*, unsigned> TextSegment; 2226 Vector<TextSegment>* textSegments = 0;2226 OwnPtr<Vector<TextSegment> > textSegments; 2227 2227 Vector<UChar> textBuffer; 2228 2228 textBuffer.reserveInitialCapacity(cMaxSegmentSize); … … 2234 2234 memcpy(newSegmentBuffer, textBuffer.data(), textBuffer.size() * sizeof(UChar)); 2235 2235 if (!textSegments) 2236 textSegments = new Vector<TextSegment>;2236 textSegments = adoptPtr(new Vector<TextSegment>); 2237 2237 textSegments->append(make_pair(newSegmentBuffer, (unsigned)textBuffer.size())); 2238 2238 textBuffer.clear(); … … 2268 2268 for (unsigned i = 0; i < size; ++i) 2269 2269 free(textSegments->at(i).first); 2270 delete textSegments;2270 textSegments.clear(); 2271 2271 } 2272 2272
Note: See TracChangeset
for help on using the changeset viewer.