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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2521063005: Move MediaQueryEvaluator from StyleResolver to StyleEngine. (Closed)
Patch Set: Rebased Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 2e8b893a56c61e0cb3f56a55d77d91fe29deac6d..c70324735a6eefbf7e6fd53f1939c575d89d8d23 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1442,9 +1442,9 @@ void FrameView::setDisplayMode(WebDisplayMode mode) {
}
void FrameView::setMediaType(const AtomicString& mediaType) {
- ASSERT(m_frame->document());
- m_frame->document()->mediaQueryAffectingValueChanged();
+ DCHECK(m_frame->document());
m_mediaType = mediaType;
+ m_frame->document()->mediaQueryAffectingValueChanged();
}
AtomicString FrameView::mediaType() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698