| Index: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| index 7bf785bbd689f718e58784961770994bdfee7007..d27dd0d8d5c4933b4f3f7854a26acaf01db6726e 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| @@ -29,6 +29,7 @@
|
| #include "wtf/BitVector.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/MathExtras.h"
|
| +#include "wtf/PassRefPtr.h"
|
| #include "wtf/TypeTraits.h"
|
| #include "wtf/text/StringHash.h"
|
| #include "wtf/text/StringView.h"
|
| @@ -38,6 +39,7 @@
|
| class CSSCalcValue;
|
| class CSSToLengthConversionData;
|
| class Length;
|
| +class ComputedStyle;
|
|
|
| // Dimension calculations are imprecise, often resulting in values of e.g.
|
| // 44.99998. We need to go ahead and round if we're really close to the next
|
| @@ -207,6 +209,9 @@
|
|
|
| static CSSPrimitiveValue* createIdentifier(CSSValueID);
|
| static CSSPrimitiveValue* create(double value, UnitType);
|
| + // TODO(sashab): Remove this create() method, CSSPrimitiveValue should not
|
| + // reference ComputedStyle.
|
| + static CSSPrimitiveValue* create(const Length& value, const ComputedStyle&);
|
| static CSSPrimitiveValue* create(const Length& value, float zoom)
|
| {
|
| return new CSSPrimitiveValue(value, zoom);
|
|
|