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

Unified Diff: Source/core/layout/LayoutQuote.cpp

Issue 940373003: Rename RenderText to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/layout/LayoutQuote.h ('k') | Source/core/layout/LayoutRubyRun.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutQuote.cpp
diff --git a/Source/core/layout/LayoutQuote.cpp b/Source/core/layout/LayoutQuote.cpp
index f88ead29f65e19c73e5877dc87517f354b6c3ab0..d8dfcffac41aeb5a8ef02ba1de633a312a6b6c27 100644
--- a/Source/core/layout/LayoutQuote.cpp
+++ b/Source/core/layout/LayoutQuote.cpp
@@ -22,8 +22,8 @@
#include "config.h"
#include "core/layout/LayoutQuote.h"
+#include "core/layout/LayoutTextFragment.h"
#include "core/layout/LayoutView.h"
-#include "core/rendering/RenderTextFragment.h"
#include "wtf/StdLibExtras.h"
#include "wtf/text/AtomicString.h"
@@ -263,24 +263,24 @@ void LayoutQuote::updateText()
m_text = text;
- RenderTextFragment* fragment = findFragmentChild();
+ LayoutTextFragment* fragment = findFragmentChild();
if (fragment) {
fragment->setStyle(style());
fragment->setContentString(m_text.impl());
} else {
- fragment = new RenderTextFragment(&document(), m_text.impl());
+ fragment = new LayoutTextFragment(&document(), m_text.impl());
fragment->setStyle(style());
addChild(fragment);
}
}
-RenderTextFragment* LayoutQuote::findFragmentChild() const
+LayoutTextFragment* LayoutQuote::findFragmentChild() const
{
// We walk from the end of the child list because, if we've had a first-letter
// renderer inserted then the remaining text will be at the end.
while (LayoutObject* child = lastChild()) {
- if (child->isText() && toRenderText(child)->isTextFragment())
- return toRenderTextFragment(child);
+ if (child->isText() && toLayoutText(child)->isTextFragment())
+ return toLayoutTextFragment(child);
}
return nullptr;
« no previous file with comments | « Source/core/layout/LayoutQuote.h ('k') | Source/core/layout/LayoutRubyRun.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698