Changeset 167160 in webkit
- Timestamp:
- Apr 11, 2014 3:13:46 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167157 r167160 1 2014-04-11 David Kilzer <ddkilzer@apple.com> 2 3 Build fix (r167151): Do not dereference Node::document() before passing to Range::create() 4 <https://webkit.org/b/131475> 5 6 Fixes the following build failure: 7 8 WebCore/editing/AlternativeTextController.cpp:275:71: error: indirection requires pointer operand ('WebCore::Document' invalid) 9 int paragraphStartIndex = TextIterator::rangeLength(Range::create(*rootNode.document(), &rootNode, 0, paragraphRangeContainingCorrection.get()->startContainer(), paragraphRangeContainingCorrection.get()->startOffset()).get()); 10 ^~~~~~~~~~~~~~~~~~~~ 11 12 * editing/AlternativeTextController.cpp: 13 (WebCore::AlternativeTextController::applyAlternativeTextToRange): 14 Remove unneeded '*' operator since Node::document() returns a 15 Document& and Range::create() accepts a Document& for its first 16 argument. 17 1 18 2014-04-11 Brian J. Burg <burg@cs.washington.edu> 2 19 -
trunk/Source/WebCore/editing/AlternativeTextController.cpp
r167151 r167160 273 273 274 274 ContainerNode& rootNode = paragraphRangeContainingCorrection.get()->startContainer()->treeScope().rootNode(); 275 int paragraphStartIndex = TextIterator::rangeLength(Range::create( *rootNode.document(), &rootNode, 0, paragraphRangeContainingCorrection.get()->startContainer(), paragraphRangeContainingCorrection.get()->startOffset()).get());275 int paragraphStartIndex = TextIterator::rangeLength(Range::create(rootNode.document(), &rootNode, 0, paragraphRangeContainingCorrection.get()->startContainer(), paragraphRangeContainingCorrection.get()->startOffset()).get()); 276 276 applyCommand(SpellingCorrectionCommand::create(rangeWithAlternative, alternative)); 277 277 // Recalculate pragraphRangeContainingCorrection, since SpellingCorrectionCommand modified the DOM, such that the original paragraphRangeContainingCorrection is no longer valid. Radar: 10305315 Bugzilla: 89526
Note: See TracChangeset
for help on using the changeset viewer.