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

Unified Diff: Source/core/css/MediaQueryList.h

Issue 369423002: Have srcset respond to viewport changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: more oilpan 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/css/MediaQueryList.h
diff --git a/Source/core/css/MediaQueryList.h b/Source/core/css/MediaQueryList.h
index 8d85c5bb391f520480b53f4810b7a1f76b5976a2..c40ba6b8d8141c2251d5d8352693674ee8b1b987 100644
--- a/Source/core/css/MediaQueryList.h
+++ b/Source/core/css/MediaQueryList.h
@@ -53,6 +53,7 @@ public:
void trace(Visitor*);
void documentDetached();
+ void alwaysUpdate() { m_alwaysUpdate = true; }
private:
MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>);
@@ -65,6 +66,7 @@ private:
ListenerList m_listeners;
bool m_matchesDirty;
bool m_matches;
+ bool m_alwaysUpdate;
};
}

Powered by Google App Engine
This is Rietveld 408576698