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

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

Issue 456963002: Delete RenderLayer::setHasVisibleContent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dangling declaration Created 6 years, 4 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/RenderLayer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 5ac1c485f9dd0aec8b628998775e059e940d51a1..1b92df45b56edeac822d98f74ee694cdc42ea80f 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -2118,13 +2118,8 @@ void RenderObject::styleWillChange(StyleDifference diff, const RenderStyle& newS
// Keep layer hierarchy visibility bits up to date if visibility changes.
if (m_style->visibility() != newStyle.visibility()) {
// We might not have an enclosing layer yet because we might not be in the tree.
- if (RenderLayer* layer = enclosingLayer()) {
- if (newStyle.visibility() == VISIBLE) {
- layer->setHasVisibleContent();
- } else {
- layer->potentiallyDirtyVisibleContentStatus(newStyle.visibility());
- }
- }
+ if (RenderLayer* layer = enclosingLayer())
+ layer->potentiallyDirtyVisibleContentStatus(newStyle.visibility());
}
if (isFloating() && (m_style->floating() != newStyle.floating()))
@@ -2735,7 +2730,7 @@ void RenderObject::insertedIntoTree()
if (!layer)
layer = parent()->enclosingLayer();
if (layer)
- layer->setHasVisibleContent();
+ layer->dirtyVisibleContentStatus();
}
if (!isFloating() && parent()->childrenInline())
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698