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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp
index 566996d9d159ececa434c23b6e830b7466971f4d..25c536c29db61667af3f881ad8a680cfb5f80c3d 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp
@@ -8,7 +8,7 @@
#include "core/css/parser/CSSLazyParsingState.h"
#include "core/css/parser/CSSParser.h"
#include "core/css/parser/CSSParserContext.h"
-#include "core/frame/FrameHost.h"
+#include "core/page/Page.h"
#include "core/testing/DummyPageHolder.h"
#include "platform/heap/Heap.h"
#include "platform/testing/HistogramTester.h"
@@ -139,7 +139,7 @@ TEST_F(CSSLazyParsingTest, ChangeDocuments) {
EXPECT_EQ(&dummyHolder->document(),
m_cachedContents->singleOwnerDocument());
- UseCounter& useCounter1 = dummyHolder->document().frameHost()->useCounter();
+ UseCounter& useCounter1 = dummyHolder->document().page()->useCounter();
EXPECT_TRUE(useCounter1.isCounted(CSSPropertyBackgroundColor));
EXPECT_FALSE(useCounter1.isCounted(CSSPropertyColor));
@@ -163,7 +163,7 @@ TEST_F(CSSLazyParsingTest, ChangeDocuments) {
rule2->properties();
EXPECT_TRUE(hasParsedProperties(rule2));
- UseCounter& useCounter2 = dummyHolder2->document().frameHost()->useCounter();
+ UseCounter& useCounter2 = dummyHolder2->document().page()->useCounter();
EXPECT_TRUE(sheet2);
EXPECT_TRUE(useCounter2.isCounted(CSSPropertyColor));
EXPECT_FALSE(useCounter2.isCounted(CSSPropertyBackgroundColor));
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698