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

Unified Diff: sky/engine/core/css/MediaValues.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/engine/core/css/CSSStyleSheet.cpp ('k') | sky/engine/core/css/parser/MediaQueryInputStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/MediaValues.cpp
diff --git a/sky/engine/core/css/MediaValues.cpp b/sky/engine/core/css/MediaValues.cpp
index bec67ff45af3020ad77fad19addbdf277cb0415d..a482f8e6768a2284e41684442726702976338c24 100644
--- a/sky/engine/core/css/MediaValues.cpp
+++ b/sky/engine/core/css/MediaValues.cpp
@@ -13,7 +13,6 @@
#include "sky/engine/core/frame/FrameView.h"
#include "sky/engine/core/frame/LocalFrame.h"
#include "sky/engine/core/frame/Settings.h"
-#include "sky/engine/core/html/imports/HTMLImportsController.h"
#include "sky/engine/core/page/Page.h"
#include "sky/engine/core/rendering/RenderObject.h"
#include "sky/engine/core/rendering/RenderView.h"
@@ -189,9 +188,7 @@ bool MediaValues::computeLengthImpl(double value, CSSPrimitiveValue::UnitType ty
LocalFrame* MediaValues::frameFrom(Document& document)
{
- Document* executingDocument = document.importsController() ? document.importsController()->master() : &document;
- ASSERT(executingDocument);
- return executingDocument->frame();
+ return document.frame();
}
} // namespace
« no previous file with comments | « sky/engine/core/css/CSSStyleSheet.cpp ('k') | sky/engine/core/css/parser/MediaQueryInputStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698