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

Unified Diff: Source/core/dom/Document.h

Issue 82083002: Move viewport unit resolution to style recalc time (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 8832da5904cc21ed6ee67d02da854f0a74418ffb..cdc18a35662be9d3dbe2702c9521ab23285a5cc2 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1014,6 +1014,10 @@ public:
void updateSecurityOrigin(PassRefPtr<SecurityOrigin>);
PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier();
+ void setHasViewportUnits() { m_hasViewportUnits = true; }
+ bool hasViewportUnits() { return m_hasViewportUnits; }
+ void notifyResizeForViewportUnits();
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
@@ -1309,6 +1313,8 @@ private:
Timer<Document> m_didAssociateFormControlsTimer;
HashSet<RefPtr<Element> > m_associatedFormControls;
+
+ bool m_hasViewportUnits;
};
inline void Document::notifyRemovePendingSheetIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698