Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp

Issue 6532004: DO NOT SUBMIT (Closed) Base URL: git://git.webkit.org/WebKit.git@master
Patch Set: Address feedback Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/src/mac/WebTextHelper.mm ('k') | Source/WebKit2/WebProcess/WebPage/WebPage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
diff --git a/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp b/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
index b95428359133780b4ced60bf63d95a36b9de150c..fc2b3f2350c9e9771f815bdf923926ab43f6894e 100644
--- a/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
+++ b/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
@@ -196,7 +196,9 @@ void WebEditorClient::respondToChangedSelection()
selectionState.isInPasswordField = frame->selection()->isInPasswordField();
selectionState.hasComposition = frame->editor()->hasComposition();
- WebPage::getLocationAndLengthFromRange(frame->selection()->toNormalizedRange().get(), selectionState.selectedRangeStart, selectionState.selectedRangeLength);
+ Range* range = frame->selection()->toNormalizedRange().get();
+ if (range)
+ range->getLocationAndLength(selectionState.selectedRangeStart, selectionState.selectedRangeLength);
m_page->send(Messages::WebPageProxy::SelectionStateChanged(selectionState));
« no previous file with comments | « Source/WebKit/chromium/src/mac/WebTextHelper.mm ('k') | Source/WebKit2/WebProcess/WebPage/WebPage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698