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

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: rebase 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
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/svg/RenderSVGInlineText.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderText.cpp
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp
index ffab800073e616f6cedf346a6bab95c8f04066dc..28033a2a08ccdbc3d7878af570620a5ee8ab5ab3 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;
}
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/svg/RenderSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698