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

Unified Diff: third_party/WebKit/Source/core/editing/EphemeralRange.h

Issue 1409073004: Return EphemeralRange from Editor::findRangeOfString. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extract text bounds collecting to a function Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/editing/EphemeralRange.h
diff --git a/third_party/WebKit/Source/core/editing/EphemeralRange.h b/third_party/WebKit/Source/core/editing/EphemeralRange.h
index e70ce8ab0ec70bc9a7d3a74cc26c92e8be750535..753d052bd25c3ddf3dbee01a89c7dabef7607522 100644
--- a/third_party/WebKit/Source/core/editing/EphemeralRange.h
+++ b/third_party/WebKit/Source/core/editing/EphemeralRange.h
@@ -65,6 +65,10 @@ public:
}
bool isNotNull() const { return !isNull(); }
+ // Returns united bounding box of all LayoutText objects within the range,
+ // as same as Range::boundingBox().
+ IntRect textBoundingBox() const;
+
DEFINE_INLINE_TRACE()
{
visitor->trace(m_startPosition);

Powered by Google App Engine
This is Rietveld 408576698