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

Unified Diff: third_party/WebKit/Source/core/css/CSSValuePair.h

Issue 2343343002: Revert of Evacuate ComputedStyle references from the CSS*Value hierarchy (Closed)
Patch Set: 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/CSSValuePair.h
diff --git a/third_party/WebKit/Source/core/css/CSSValuePair.h b/third_party/WebKit/Source/core/css/CSSValuePair.h
index 8eeaff51c36171a2281d42cd12991b32bd27928b..4069f090f5fb33b253e242e4cb5683cf18f15ebd 100644
--- a/third_party/WebKit/Source/core/css/CSSValuePair.h
+++ b/third_party/WebKit/Source/core/css/CSSValuePair.h
@@ -22,7 +22,11 @@
#define CSSValuePair_h
#include "core/CoreExport.h"
+#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSValue.h"
+#include "core/style/ComputedStyle.h"
+#include "platform/Length.h"
+#include "wtf/text/StringBuilder.h"
namespace blink {
@@ -34,6 +38,11 @@
IdenticalValuesPolicy identicalValuesPolicy)
{
return new CSSValuePair(first, second, identicalValuesPolicy);
+ }
+
+ static CSSValuePair* create(const LengthSize& lengthSize, const ComputedStyle& style)
+ {
+ return new CSSValuePair(CSSPrimitiveValue::create(lengthSize.width(), style.effectiveZoom()), CSSPrimitiveValue::create(lengthSize.height(), style.effectiveZoom()), KeepIdenticalValues);
}
const CSSValue& first() const { return *m_first; }
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSValuePool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698