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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2543913002: Generalize visible descendant dirty bits to prepare for more properties. (Closed)
Patch Set: none Created 4 years 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
Index: third_party/WebKit/Source/core/paint/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 41b5b172576a9340a0619ceb6260876f6f83c6bb..c441436966b72bc192cdc55a7ef846ac2fa93cae 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -315,22 +315,17 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
return !hasVisibleContent() && !hasVisibleDescendant();
}
- // FIXME: hasVisibleContent() should call updateDescendantDependentFlags() if
- // m_isVisibleContentDirty.
bool hasVisibleContent() const {
DCHECK(!m_isVisibleContentDirty);
return m_hasVisibleContent;
}
- // FIXME: hasVisibleDescendant() should call updateDescendantDependentFlags()
- // if m_isVisibleDescendantDirty.
bool hasVisibleDescendant() const {
- DCHECK(!m_isVisibleDescendantDirty);
+ DCHECK(!m_needsDescendantDependentFlagsUpdate);
return m_hasVisibleDescendant;
}
void dirtyVisibleContentStatus();
- void potentiallyDirtyVisibleContentStatus(EVisibility);
bool hasBoxDecorationsOrBackground() const;
bool hasVisibleBoxDecorations() const;
@@ -1073,7 +1068,7 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
bool requiresScrollableArea() const { return layoutBox(); }
void updateScrollableArea();
- void dirtyAncestorChainVisibleDescendantStatus();
+ void markAncestorChainForDescendantDependentFlagsUpdate();
bool attemptDirectCompositingUpdate(StyleDifference,
const ComputedStyle* oldStyle);
@@ -1135,7 +1130,7 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
unsigned m_isVisibleContentDirty : 1;
unsigned m_hasVisibleContent : 1;
- unsigned m_isVisibleDescendantDirty : 1;
+ unsigned m_needsDescendantDependentFlagsUpdate : 1;
Xianzhu 2016/12/01 17:59:32 I'm not sure if the renaming is a good idea. upda
chrishtr 2016/12/01 18:05:22 I could update the patch to try removing m_isVisib
Xianzhu 2016/12/01 18:05:25 Can this be m_childNeedsDecendantDependengFlagsUpd
chrishtr 2016/12/01 18:06:01 Seem my comment in response to your one in PaintLa
Xianzhu 2016/12/01 18:07:03 Removing m_isVisibleContentDirty SGTM.
chrishtr 2016/12/01 23:54:20 Done.
unsigned m_hasVisibleDescendant : 1;
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698