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

Unified Diff: Source/core/rendering/FastTextAutosizer.h

Issue 209413002: Avoid unnecessary invalidations on resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@crap
Patch Set: Assert !m_updatePageInfoDeferred in beginLayout. Created 6 years, 9 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
Index: Source/core/rendering/FastTextAutosizer.h
diff --git a/Source/core/rendering/FastTextAutosizer.h b/Source/core/rendering/FastTextAutosizer.h
index 8228c11efe97d8e443d58f8d37c56fd7c3d7dca9..0552238b61925a94a1892111d72c7097933d4c8e 100644
--- a/Source/core/rendering/FastTextAutosizer.h
+++ b/Source/core/rendering/FastTextAutosizer.h
@@ -75,6 +75,14 @@ public:
RenderBlock* m_block;
};
+ class DeferUpdatePageInfo {
+ public:
+ explicit DeferUpdatePageInfo(Page*);
+ ~DeferUpdatePageInfo();
+ private:
+ LocalFrame* m_mainFrame;
+ };
+
private:
typedef HashSet<const RenderBlock*> BlockSet;
@@ -234,6 +242,7 @@ private:
float m_baseMultiplier; // Includes accessibility font scale factor and device scale adjustment.
bool m_pageNeedsAutosizing;
bool m_previouslyAutosized;
+ bool m_updatePageInfoDeferred;
const RenderBlock* m_firstBlock; // First block to receive beginLayout.
#ifndef NDEBUG
BlockSet m_blocksThatHaveBegunLayout; // Used to ensure we don't compute properties of a block before beginLayout() is called on it.
« no previous file with comments | « no previous file | Source/core/rendering/FastTextAutosizer.cpp » ('j') | Source/core/rendering/FastTextAutosizer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698