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

Unified Diff: Source/core/rendering/RenderText.cpp

Issue 622253002: Pass start/length at InlineTextBox construction time. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: condense by one line Created 6 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
Index: Source/core/rendering/RenderText.cpp
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp
index 871a8c9a6d32a2e5051cd3019664830d645171f0..de653cd5280e970be8c00380be02d6418e3de9e5 100644
--- a/Source/core/rendering/RenderText.cpp
+++ b/Source/core/rendering/RenderText.cpp
@@ -1436,14 +1436,14 @@ void RenderText::dirtyLineBoxes(bool fullLayout)
m_linesDirty = false;
}
-InlineTextBox* RenderText::createTextBox()
+InlineTextBox* RenderText::createTextBox(int start, unsigned short length)
{
- return new InlineTextBox(*this);
+ return new InlineTextBox(*this, start, length);
}
-InlineTextBox* RenderText::createInlineTextBox()
+InlineTextBox* RenderText::createInlineTextBox(int start, unsigned short length)
{
- InlineTextBox* textBox = createTextBox();
+ InlineTextBox* textBox = createTextBox(start, length);
if (!m_firstTextBox)
m_firstTextBox = m_lastTextBox = textBox;
else {
@@ -1451,7 +1451,6 @@ InlineTextBox* RenderText::createInlineTextBox()
textBox->setPreviousTextBox(m_lastTextBox);
m_lastTextBox = textBox;
}
- textBox->setIsText(true);
return textBox;
}

Powered by Google App Engine
This is Rietveld 408576698