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

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

Issue 455963002: RenderLayer::hasVisibleDescendant should ASSERT(!m_visibleDescendantStatusDirty) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index 27493a3937ab0ba065ba04fb60ebe4dfb9c73ffa..cdd213e02dcf7b937e36df0debaece7edacee76b 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -1963,8 +1963,12 @@ void RenderBox::deleteLineBoxWrapper()
LayoutRect RenderBox::clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const
{
- if (style()->visibility() != VISIBLE && enclosingLayer()->subtreeIsInvisible())
- return LayoutRect();
+ if (style()->visibility() != VISIBLE) {
+ RenderLayer* layer = enclosingLayer();
+ layer->updateDescendantDependentFlags();
skobes 2014/08/08 20:43:18 Why is this method, which doesn't seem like it sho
abarth-chromium 2014/08/08 21:24:39 That's a good question. The answer is slightly in
skobes 2014/08/08 21:45:01 Got it... I'm fine with the approach here as long
+ if (layer->subtreeIsInvisible())
+ return LayoutRect();
+ }
LayoutRect r = visualOverflowRect();
mapRectToPaintInvalidationBacking(paintInvalidationContainer, r, false /*fixed*/, paintInvalidationState);
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698