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

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

Issue 429453004: Let FrameSelection::localCaretRect on a text input field avoid synchronous layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 6 years, 5 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/PositionWithAffinity.h
diff --git a/Source/core/editing/PositionWithAffinity.h b/Source/core/editing/PositionWithAffinity.h
index 408c2e9c7d2515fbb87d3d9a9be20de3102b52fc..d281bf4927b51000fc85b02b7a223fddd9729c73 100644
--- a/Source/core/editing/PositionWithAffinity.h
+++ b/Source/core/editing/PositionWithAffinity.h
@@ -20,6 +20,9 @@ public:
EAffinity affinity() const { return m_affinity; }
const Position& position() const { return m_position; }
+ // Rect is local to the returned renderer
+ LayoutRect localCaretRect(RenderObject*&) const;
yosin_UTC9 2014/07/29 07:00:20 We would like to keep PositionWithAninity as simpl
yoichio 2014/07/29 08:05:17 Done.
+
void trace(Visitor*);
private:

Powered by Google App Engine
This is Rietveld 408576698