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

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

Issue 369423002: Have srcset respond to viewport changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oilpan comments Created 6 years, 5 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/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 68fd2fa035b76ca0bdf4a49546a62975c8e83ced..45452d2e1d0471f96f37d65afab63d0d6604f0cb 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -149,6 +149,7 @@ class TouchList;
class TransformSource;
class TreeWalker;
class VisitedLinkState;
+class ViewportChangeNotifier;
class WebGLRenderingContext;
struct AnnotatedRegionValue;
@@ -1033,6 +1034,8 @@ public:
bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdateSVGFilterElements.size(); }
void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
+ ViewportChangeNotifier& viewportChangeNotifier() { return *m_viewportChangeNotifier; }
esprehn 2014/07/14 08:39:49 I don't think we want more APIs here.
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
@@ -1325,6 +1328,7 @@ private:
bool m_writingModeSetOnDocumentElement;
DocumentTiming m_documentTiming;
RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher;
+ OwnPtrWillBeMember<ViewportChangeNotifier> m_viewportChangeNotifier;
sof 2014/07/14 20:38:08 If you add a Member to a class, you also need to t
bool m_writeRecursionIsTooDeep;
unsigned m_writeRecursionDepth;

Powered by Google App Engine
This is Rietveld 408576698