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

Unified Diff: Source/core/dom/PseudoElement.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/dom/PositionIterator.cpp ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/PseudoElement.cpp
diff --git a/Source/core/dom/PseudoElement.cpp b/Source/core/dom/PseudoElement.cpp
index c5fcf090d0c7695ef6b64a6499172290c4d055bd..359876f6084d3379fe6cd72c682990034240ee2a 100644
--- a/Source/core/dom/PseudoElement.cpp
+++ b/Source/core/dom/PseudoElement.cpp
@@ -29,7 +29,7 @@
#include "core/dom/FirstLetterPseudoElement.h"
#include "core/inspector/InspectorInstrumentation.h"
-#include "core/rendering/RenderObject.h"
+#include "core/layout/LayoutObject.h"
#include "core/rendering/RenderQuote.h"
#include "core/rendering/style/ContentData.h"
@@ -116,7 +116,7 @@ void PseudoElement::attach(const AttachContext& context)
Element::attach(context);
- RenderObject* renderer = this->renderer();
+ LayoutObject* renderer = this->renderer();
if (!renderer)
return;
@@ -126,7 +126,7 @@ void PseudoElement::attach(const AttachContext& context)
ASSERT(style->contentData());
for (const ContentData* content = style->contentData(); content; content = content->next()) {
- RenderObject* child = content->createRenderer(document(), style);
+ LayoutObject* child = content->createRenderer(document(), style);
if (renderer->isChildAllowed(child, *style)) {
renderer->addChild(child);
if (child->isQuote())
@@ -147,9 +147,9 @@ void PseudoElement::didRecalcStyle(StyleRecalcChange)
return;
// The renderers inside pseudo elements are anonymous so they don't get notified of recalcStyle and must have
- // the style propagated downward manually similar to RenderObject::propagateStyleToAnonymousChildren.
- RenderObject* renderer = this->renderer();
- for (RenderObject* child = renderer->nextInPreOrder(renderer); child; child = child->nextInPreOrder(renderer)) {
+ // the style propagated downward manually similar to LayoutObject::propagateStyleToAnonymousChildren.
+ LayoutObject* renderer = this->renderer();
+ for (LayoutObject* child = renderer->nextInPreOrder(renderer); child; child = child->nextInPreOrder(renderer)) {
// We only manage the style for the generated content items.
if (!child->isText() && !child->isQuote() && !child->isImage())
continue;
« no previous file with comments | « Source/core/dom/PositionIterator.cpp ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698