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

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

Issue 1217943010: Add a FrameView lifecycle method that just updates layout, style and compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/editing/iterators/TextIteratorTest.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index 5340a380b8154b9a30615ee8cfc91ccbcbdfaf6c..a2a24baa7b046242e08ac52057035684d553dcfa 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -227,7 +227,12 @@ public:
Color documentBackgroundColor() const;
- void updateLayoutAndStyleForPainting();
+ // Run all needed lifecycle stages. After calling this method, all frames will be in the lifecycle state PaintInvalidationClean.
+ void updateAllLifecyclePhases();
+
+ // Computes the style, layout and compositing lifecycle stages if needed. After calling this method, all frames wil lbe in a lifecycle
+ // state >= CompositingClean, and scrolling has been updated.
+ void updateLifecycleToCompositingCleanPlusScrolling();
bool invalidateViewportConstrainedObjects();
@@ -603,10 +608,11 @@ private:
virtual void setScrollOffset(const IntPoint&, ScrollType) override;
virtual void setScrollOffset(const DoublePoint&, ScrollType) override;
- void updateLayoutAndStyleForPaintingInternal();
+ void updateAllLifecyclePhasesInternal();
void invalidateTreeIfNeededRecursive();
void scrollContentsIfNeededRecursive();
- void updateLayoutAndStyleIfNeededRecursive();
+ void updateStyleAndLayoutIfNeededRecursive();
+ void updatePostLifecycleData();
void reset();
void init();
« no previous file with comments | « Source/core/editing/iterators/TextIteratorTest.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698