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

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: rebased.. 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 b1209b26e8de32d467c34ff397d6cf36e1e187cb..b0786e2a037cc7cc954bdce8d1c1598472fd3fc9 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; }
esprehn 2013/12/04 06:02:28 const
Timothy Loh 2013/12/04 07:17:39 Done.
+ 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;
esprehn 2013/12/04 06:02:28 You don't set this in the constructor, you need m_
Timothy Loh 2013/12/04 07:17:39 Done.
};
inline void Document::notifyRemovePendingSheetIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698