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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2539693002: Early-out from the prepaint tree walk (Closed)
Patch Set: Switch away from typed enums which Windows clang does not like 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/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index 34ae469618f4a2fcb824dfabe31932249f3645f9..369b952f4b5fa75ee2ae6223769ff921ded39309 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -728,10 +728,15 @@ class CORE_EXPORT FrameView final
// Paint properties (e.g., m_preTranslation, etc.) are built from the
// FrameView's state (e.g., x(), y(), etc.) as well as inherited context.
// When these inputs change, setNeedsPaintPropertyUpdate will cause a property
- // tree update during the next document lifecycle update.
- // TODO(pdr): Add additional granularity such as the ability to signal that
- // only a local paint property update is needed.
- void setNeedsPaintPropertyUpdate() { m_needsPaintPropertyUpdate = true; }
+ // tree update during the next document lifecycle update. For subframes,
+ // the owning LayoutObject is marked as having a descendant needing an update.
+ void setNeedsPaintPropertyUpdate();
+ // Same as |setNeedsPaintPropertyUpdate| but does not notify the owning
+ // LayoutObject as having a descendant needing a paint property update.
+ void setNeedsPaintPropertyUpdateWithoutMarkingAncestors() {
+ DCHECK_EQ(lifecycle().state(), DocumentLifecycle::InPrePaint);
+ m_needsPaintPropertyUpdate = true;
+ }
void clearNeedsPaintPropertyUpdate() {
DCHECK_EQ(lifecycle().state(), DocumentLifecycle::InPrePaint);
m_needsPaintPropertyUpdate = false;

Powered by Google App Engine
This is Rietveld 408576698