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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2316423002: Introduce WebRange::isEmpty. (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/public/web/WebRange.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index f2768e08c7501b77daf6b08f034399e2faa6d09e..64d96e082cd58c0c679c10bdaa4abbf5364e3337 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2829,10 +2829,7 @@ void WebViewImpl::didChangeWindowResizerRect()
bool WebViewImpl::getCompositionCharacterBounds(WebVector<WebRect>& bounds)
{
WebRange range = compositionRange();
- if (range.isNull())
- return false;
-
- if (range.length() == 0)
+ if (range.isEmpty())
return false;
WebLocalFrame* frame = focusedFrame();
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/public/web/WebRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698