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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/rendering/RenderText.h ('k') | Source/core/rendering/RenderTextControl.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 ae22d50cbeb7fb14843a3fe3823ee793405c3798..4cce9b8bcee75abb82caa825006b48b5cc57b4dd 100644
--- a/Source/core/rendering/RenderText.cpp
+++ b/Source/core/rendering/RenderText.cpp
@@ -56,7 +56,7 @@ using namespace Unicode;
namespace blink {
-struct SameSizeAsRenderText : public RenderObject {
+struct SameSizeAsRenderText : public LayoutObject {
uint32_t bitfields : 16;
float widths[4];
String text;
@@ -138,7 +138,7 @@ static void makeCapitalized(String* string, UChar previous)
}
RenderText::RenderText(Node* node, PassRefPtr<StringImpl> str)
- : RenderObject(!node || node->isDocumentNode() ? 0 : node)
+ : LayoutObject(!node || node->isDocumentNode() ? 0 : node)
, m_hasTab(false)
, m_linesDirty(false)
, m_containsReversedText(false)
@@ -236,7 +236,7 @@ void RenderText::willBeDestroyed()
delete secureTextTimer;
removeAndDestroyTextBoxes();
- RenderObject::willBeDestroyed();
+ LayoutObject::willBeDestroyed();
}
void RenderText::extractTextBox(InlineTextBox* box)
@@ -1198,7 +1198,7 @@ float RenderText::firstRunY() const
void RenderText::setSelectionState(SelectionState state)
{
- RenderObject::setSelectionState(state);
+ LayoutObject::setSelectionState(state);
if (canUpdateSelectionOnRootLineBoxes()) {
if (state == SelectionStart || state == SelectionEnd || state == SelectionBoth) {
@@ -1315,7 +1315,7 @@ void RenderText::transformText()
setText(textToTransform.release(), true);
}
-static inline bool isInlineFlowOrEmptyText(const RenderObject* o)
+static inline bool isInlineFlowOrEmptyText(const LayoutObject* o)
{
if (o->isRenderInline())
return true;
@@ -1327,7 +1327,7 @@ static inline bool isInlineFlowOrEmptyText(const RenderObject* o)
UChar RenderText::previousCharacter() const
{
// find previous text renderer if one exists
- const RenderObject* previousText = previousInPreOrder();
+ const LayoutObject* previousText = previousInPreOrder();
for (; previousText; previousText = previousText->previousInPreOrder())
if (!isInlineFlowOrEmptyText(previousText))
break;
@@ -1424,7 +1424,7 @@ void RenderText::setText(PassRefPtr<StringImpl> text, bool force)
return;
setTextInternal(text);
- // If preferredLogicalWidthsDirty() of an orphan child is true, RenderObjectChildList::
+ // If preferredLogicalWidthsDirty() of an orphan child is true, LayoutObjectChildList::
// insertChildNode() fails to set true to owner. To avoid that, we call
// setNeedsLayoutAndPrefWidthsRecalc() only if this RenderText has parent.
if (parent())
@@ -1890,7 +1890,7 @@ PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox()
void RenderText::invalidateDisplayItemClients(DisplayItemList* displayItemList) const
{
- RenderObject::invalidateDisplayItemClients(displayItemList);
+ LayoutObject::invalidateDisplayItemClients(displayItemList);
for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
displayItemList->invalidate(box->displayItemClient());
}
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderTextControl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698