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

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

Issue 1414393003: Rename LayoutTextFragment::m_end to m_length (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make fragmentLength() private Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fe4c6f56fd7b75bfc69c92221d8baea1c4c3c121..d5e036851e6e84bf480639b67e687263b46570f1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
@@ -44,7 +44,6 @@ public:
bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
unsigned start() const { return m_start; }
- unsigned end() const { return m_end; }
unsigned textStartOffset() const override { return start(); }
@@ -81,9 +80,10 @@ private:
Text* associatedTextNode() const;
void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
+ unsigned fragmentLength() const { return m_fragmentLength; }
yosin_UTC9 2015/10/27 01:06:52 Oops, I'm a first user of using |fragmentLength()|
unsigned m_start;
- unsigned m_end;
+ unsigned m_fragmentLength;
bool m_isRemainingTextLayoutObject;
RefPtr<StringImpl> m_contentString;
// Reference back to FirstLetterPseudoElement; cleared by FirstLetterPseudoElement::detach() if
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698