| 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 5c2dcb865baf8ea3c9a4516375d6301fc305d6eb..26bba4bd95f252fb57b38f492bb37970f8b64751 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
|
| @@ -25,8 +25,14 @@
|
| #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;
|
|
|
| @@ -138,6 +144,11 @@
|
| default:
|
| return new CSSPrimitiveValue(value, type);
|
| }
|
| +}
|
| +
|
| +CSSPrimitiveValue* CSSPrimitiveValue::create(const Length& value, const ComputedStyle& style)
|
| +{
|
| + return CSSPrimitiveValue::create(value, style.effectiveZoom());
|
| }
|
|
|
| using CSSTextCache = PersistentHeapHashMap<WeakMember<const CSSPrimitiveValue>, String>;
|
|
|