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

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

Issue 2741143002: Simplify LayoutTextFragment constructor. (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
index 72d1e4fd430d6e00a1399086abdd06f47fbbcd6a..09e5c925aed0016f4c4768a643f18b8e1f658602 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
@@ -44,12 +44,7 @@ LayoutTextFragment::LayoutTextFragment(Node* node,
m_firstLetterPseudoElement(nullptr) {}
LayoutTextFragment::LayoutTextFragment(Node* node, StringImpl* str)
- : LayoutText(node, str),
- m_start(0),
- m_fragmentLength(str ? str->length() : 0),
- m_isRemainingTextLayoutObject(false),
- m_contentString(str),
- m_firstLetterPseudoElement(nullptr) {}
+ : LayoutTextFragment(node, str, 0, str ? str->length() : 0) {}
LayoutTextFragment::~LayoutTextFragment() {
ASSERT(!m_firstLetterPseudoElement);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698