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

Unified Diff: Source/core/editing/FrameSelection.h

Issue 640023002: The selection bounds should be clipped to the viewport (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline a test. Created 6 years, 2 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
Index: Source/core/editing/FrameSelection.h
diff --git a/Source/core/editing/FrameSelection.h b/Source/core/editing/FrameSelection.h
index 9438a0313e4ab621c51373b3ce23d38acaa57dbd..1af141c5cd712766e17742cfa26e1ba2f113a426 100644
--- a/Source/core/editing/FrameSelection.h
+++ b/Source/core/editing/FrameSelection.h
@@ -201,7 +201,9 @@ public:
String selectedText() const;
String selectedTextForClipboard() const;
- FloatRect bounds() const;
+ // The bounds are clipped to the viewport as this is what callers expect.
+ LayoutRect bounds() const;
+ LayoutRect unclippedBounds() const;
HTMLFormElement* currentForm() const;
« no previous file with comments | « LayoutTests/fast/transforms/selection-bounds-in-transformed-view-expected.txt ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698