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

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

Issue 320593004: RenderLayer::setHasVisibleContent shouldn't call dirtyZOrderLists() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index a3c10f8a5898dd9e05a28405bcf6ee2b43e63654..c6a82aebe0221fb132134d7469866d602cb45d23 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -746,18 +746,7 @@ void RenderLayer::setHasVisibleContent()
m_visibleContentStatusDirty = false;
setNeedsToUpdateAncestorDependentProperties();
-
repainter().computeRepaintRects();
- if (!m_stackingNode->isNormalFlowOnly()) {
- // We don't collect invisible layers in z-order lists if we are not in compositing mode.
- // As we became visible, we need to dirty our stacking containers ancestors to be properly
- // collected. FIXME: When compositing, we could skip this dirtying phase.
- for (RenderLayerStackingNode* sc = m_stackingNode->ancestorStackingContextNode(); sc; sc = sc->ancestorStackingContextNode()) {
- sc->dirtyZOrderLists();
- if (sc->layer()->hasVisibleContent())
- break;
- }
- }
if (parent())
parent()->setAncestorChainHasVisibleDescendant();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698