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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp

Issue 2720933003: Removed FrameHost::useCounter() (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
index e9a9d2518e065b878358c8589f98b54f75834cf7..c4c6a2aa82c10b35658cb1ad43cbe9f3b9e57285 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
@@ -7,10 +7,10 @@
#include "core/css/CSSStyleSheet.h"
#include "core/css/StyleSheetContents.h"
#include "core/frame/Deprecation.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/Settings.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/html/imports/HTMLImportsController.h"
+#include "core/page/Page.h"
namespace blink {
@@ -152,8 +152,8 @@ void CSSParserContext::countDeprecation(UseCounter::Feature feature) const {
}
void CSSParserContext::count(CSSParserMode mode, CSSPropertyID property) const {
- if (isUseCounterRecordingEnabled() && m_document->frameHost()) {
- UseCounter* useCounter = &m_document->frameHost()->useCounter();
+ if (isUseCounterRecordingEnabled() && m_document->page()) {
+ UseCounter* useCounter = &m_document->page()->useCounter();
if (useCounter)
useCounter->count(mode, property);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp ('k') | third_party/WebKit/Source/core/frame/FrameHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698