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

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: actually fix zoom handling 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 1c14d5c6691f0a69bb8d0792661af467e66d1e6b..3c251894c23e97d4aa422f252c0f219087f4dafa 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1015,6 +1015,10 @@ public:
void updateSecurityOrigin(PassRefPtr<SecurityOrigin>);
PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier();
+ void setHasViewportUnits() { m_hasViewportUnits = true; }
+ bool hasViewportUnits() const { return m_hasViewportUnits; }
+ void notifyResizeForViewportUnits();
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
@@ -1310,6 +1314,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