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

Unified Diff: sky/engine/core/rendering/RenderObject.cpp

Issue 1077473002: Stop rendering text inside flex boxes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make p default to display: paragraph Created 5 years, 8 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 | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderParagraph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderObject.cpp
diff --git a/sky/engine/core/rendering/RenderObject.cpp b/sky/engine/core/rendering/RenderObject.cpp
index b95a7f86e735f8797436d7897290a8a31efd3f7b..38009d6ad5ffb3015af9c00dfcfb322c7ef908ae 100644
--- a/sky/engine/core/rendering/RenderObject.cpp
+++ b/sky/engine/core/rendering/RenderObject.cpp
@@ -1301,22 +1301,6 @@ void RenderObject::styleDidChange(StyleDifference diff, const RenderStyle* oldSt
}
}
-void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly)
-{
- // FIXME: We could save this call when the change only affected non-inherited properties.
- for (RenderObject* child = slowFirstChild(); child; child = child->nextSibling()) {
- if (!child->isAnonymous())
- continue;
-
- if (blockChildrenOnly && !child->isRenderBlock())
- continue;
-
- RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(style(), child->style()->display());
- updateAnonymousChildStyle(child, newStyle.get());
- child->setStyle(newStyle.release());
- }
-}
-
void RenderObject::updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers)
{
// Optimize the common case
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderParagraph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698