OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |