| 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;
|
|
|