Commit fb37238e authored by ecobos's avatar ecobos Committed by Commit bot

Simplify LayoutTextFragment constructor.

Just a simple cleanup I saw while working on
https://codereview.chromium.org/2727853002

Review-Url: https://codereview.chromium.org/2741143002
Cr-Commit-Position: refs/heads/master@{#456082}
parent bd180ddb
...@@ -44,12 +44,7 @@ LayoutTextFragment::LayoutTextFragment(Node* node, ...@@ -44,12 +44,7 @@ LayoutTextFragment::LayoutTextFragment(Node* node,
m_firstLetterPseudoElement(nullptr) {} m_firstLetterPseudoElement(nullptr) {}
LayoutTextFragment::LayoutTextFragment(Node* node, StringImpl* str) LayoutTextFragment::LayoutTextFragment(Node* node, StringImpl* str)
: LayoutText(node, str), : LayoutTextFragment(node, str, 0, str ? str->length() : 0) {}
m_start(0),
m_fragmentLength(str ? str->length() : 0),
m_isRemainingTextLayoutObject(false),
m_contentString(str),
m_firstLetterPseudoElement(nullptr) {}
LayoutTextFragment::~LayoutTextFragment() { LayoutTextFragment::~LayoutTextFragment() {
ASSERT(!m_firstLetterPseudoElement); ASSERT(!m_firstLetterPseudoElement);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment