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

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

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/MediaQueryEvaluator.cpp ('k') | sky/engine/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StylePropertySet.cpp
diff --git a/sky/engine/core/css/StylePropertySet.cpp b/sky/engine/core/css/StylePropertySet.cpp
index cfe8689593918566fe4fb9cfaa700f5caa50094a..a917602a5e0b8a7656753aca0f631ee580255404 100644
--- a/sky/engine/core/css/StylePropertySet.cpp
+++ b/sky/engine/core/css/StylePropertySet.cpp
@@ -30,7 +30,6 @@
#include "sky/engine/core/css/StylePropertySerializer.h"
#include "sky/engine/core/css/StyleSheetContents.h"
#include "sky/engine/core/css/parser/BisonCSSParser.h"
-#include "sky/engine/core/frame/UseCounter.h"
#include "sky/engine/wtf/text/StringBuilder.h"
#ifndef NDEBUG
@@ -252,10 +251,9 @@ void MutableStylePropertySet::parseDeclaration(const String& styleDeclaration, S
{
m_propertyVector.clear();
- CSSParserContext context(UseCounter::getFrom(contextStyleSheet));
- if (contextStyleSheet) {
+ CSSParserContext context;
+ if (contextStyleSheet)
context = contextStyleSheet->parserContext();
- }
BisonCSSParser parser(context);
parser.parseDeclaration(this, styleDeclaration, 0, contextStyleSheet);
« no previous file with comments | « sky/engine/core/css/MediaQueryEvaluator.cpp ('k') | sky/engine/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698