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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp

Issue 2345893004: Evacuate ComputedStyle references from the CSS*Value hierarchy (Closed)
Patch Set: Include WTFString.h in CSSValuePair.h Created 4 years, 3 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/CSSPrimitiveValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
index 26bba4bd95f252fb57b38f492bb37970f8b64751..5c2dcb865baf8ea3c9a4516375d6301fc305d6eb 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
@@ -25,14 +25,8 @@
#include "core/css/CSSMarkup.h"
#include "core/css/CSSToLengthConversionData.h"
#include "core/css/CSSValuePool.h"
-#include "core/css/StyleSheetContents.h"
-#include "core/dom/Node.h"
-#include "core/style/ComputedStyle.h"
#include "platform/LayoutUnit.h"
-#include "platform/fonts/FontMetrics.h"
#include "wtf/StdLibExtras.h"
-#include "wtf/text/StringBuffer.h"
-#include "wtf/text/StringBuilder.h"
using namespace WTF;
@@ -146,11 +140,6 @@ CSSPrimitiveValue* CSSPrimitiveValue::create(double value, UnitType type)
}
}
-CSSPrimitiveValue* CSSPrimitiveValue::create(const Length& value, const ComputedStyle& style)
-{
- return CSSPrimitiveValue::create(value, style.effectiveZoom());
-}
-
using CSSTextCache = PersistentHeapHashMap<WeakMember<const CSSPrimitiveValue>, String>;
static CSSTextCache& cssTextCache()
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.h ('k') | third_party/WebKit/Source/core/css/CSSValuePair.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698