| 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; }
|
|
|