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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 453113002: RenderLayer::hasVisibleContent should ASSERT(!m_visibleContentStatusDirty) (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderBlockFlow.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void clearBlockSelectionGapsBounds(); 164 void clearBlockSelectionGapsBounds();
165 void invalidatePaintForBlockSelectionGaps(); 165 void invalidatePaintForBlockSelectionGaps();
166 IntRect blockSelectionGapsBounds() const; 166 IntRect blockSelectionGapsBounds() const;
167 bool hasBlockSelectionGapBounds() const; 167 bool hasBlockSelectionGapBounds() const;
168 168
169 RenderLayerStackingNode* stackingNode() { return m_stackingNode.get(); } 169 RenderLayerStackingNode* stackingNode() { return m_stackingNode.get(); }
170 const RenderLayerStackingNode* stackingNode() const { return m_stackingNode. get(); } 170 const RenderLayerStackingNode* stackingNode() const { return m_stackingNode. get(); }
171 171
172 bool subtreeIsInvisible() const { return !hasVisibleContent() && !hasVisible Descendant(); } 172 bool subtreeIsInvisible() const { return !hasVisibleContent() && !hasVisible Descendant(); }
173 173
174 // FIXME: We should ASSERT(!m_visibleContentStatusDirty) here, but see https ://bugs.webkit.org/show_bug.cgi?id=71044 174 // FIXME: hasVisibleDescendant() should call updateDescendantDependentFlags( ) if m_visibleContentStatusDirty.
skobes 2014/08/08 21:59:42 hasVisibleDescendant -> hasVisibleContent
175 // ditto for hasVisibleDescendant(), see https://bugs.webkit.org/show_bug.cg i?id=71277 175 bool hasVisibleContent() const { ASSERT(!m_visibleContentStatusDirty); retur n m_hasVisibleContent; }
176 bool hasVisibleContent() const { return m_hasVisibleContent; } 176
177 // FIXME: hasVisibleDescendant() should call updateDescendantDependentFlags( ) if m_visibleDescendantStatusDirty.
177 bool hasVisibleDescendant() const { ASSERT(!m_visibleDescendantStatusDirty); return m_hasVisibleDescendant; } 178 bool hasVisibleDescendant() const { ASSERT(!m_visibleDescendantStatusDirty); return m_hasVisibleDescendant; }
178 179
179 void setHasVisibleContent(); 180 void setHasVisibleContent();
180 void dirtyVisibleContentStatus(); 181 void dirtyVisibleContentStatus();
182 void potentiallyDirtyVisibleContentStatus(EVisibility);
181 183
182 bool hasBoxDecorationsOrBackground() const; 184 bool hasBoxDecorationsOrBackground() const;
183 bool hasVisibleBoxDecorations() const; 185 bool hasVisibleBoxDecorations() const;
184 // Returns true if this layer has visible content (ignoring any child layers ). 186 // Returns true if this layer has visible content (ignoring any child layers ).
185 bool isVisuallyNonEmpty() const; 187 bool isVisuallyNonEmpty() const;
186 // True if this layer container renderers that paint. 188 // True if this layer container renderers that paint.
187 bool hasNonEmptyChildRenderers() const; 189 bool hasNonEmptyChildRenderers() const;
188 190
189 // FIXME: We should ASSERT(!m_hasSelfPaintingLayerDescendantDirty); here but we hit the same bugs as visible content above. 191 // FIXME: We should ASSERT(!m_hasSelfPaintingLayerDescendantDirty); here but we hit the same bugs as visible content above.
190 // Part of the issue is with subtree relayout: we don't check if our ancesto rs have some descendant flags dirty, missing some updates. 192 // Part of the issue is with subtree relayout: we don't check if our ancesto rs have some descendant flags dirty, missing some updates.
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 734
733 } // namespace blink 735 } // namespace blink
734 736
735 #ifndef NDEBUG 737 #ifndef NDEBUG
736 // Outside the WebCore namespace for ease of invocation from gdb. 738 // Outside the WebCore namespace for ease of invocation from gdb.
737 void showLayerTree(const blink::RenderLayer*); 739 void showLayerTree(const blink::RenderLayer*);
738 void showLayerTree(const blink::RenderObject*); 740 void showLayerTree(const blink::RenderObject*);
739 #endif 741 #endif
740 742
741 #endif // RenderLayer_h 743 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockFlow.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698