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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.h

Issue 1404423005: Make most{Backward,Forward}CaretPosition() to handle first-letter pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015-11-02T14:06:55 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/layout/LayoutTextFragment.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
index d5e036851e6e84bf480639b67e687263b46570f1..d4c6198f0a25305d21eb20d3170f8cf74afc4ebf 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
@@ -44,6 +44,7 @@ public:
bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
unsigned start() const { return m_start; }
+ unsigned fragmentLength() const { return m_fragmentLength; }
unsigned textStartOffset() const override { return start(); }
@@ -80,7 +81,6 @@ private:
Text* associatedTextNode() const;
void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
- unsigned fragmentLength() const { return m_fragmentLength; }
unsigned m_start;
unsigned m_fragmentLength;

Powered by Google App Engine
This is Rietveld 408576698