Chromium Code Reviews| Index: Source/core/css/CSSPrimitiveValue.h |
| diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h |
| index 6536b3f89a3643f719e44f43fef99af5996b0071..4a0dcd86e67f082d50d067b052a9e8b9d14acd42 100644 |
| --- a/Source/core/css/CSSPrimitiveValue.h |
| +++ b/Source/core/css/CSSPrimitiveValue.h |
| @@ -253,6 +253,10 @@ public: |
| { |
| return adoptRefWillBeNoop(new CSSPrimitiveValue(value)); |
| } |
| + static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(const LengthSize& value, const RenderStyle& style) |
| + { |
| + return adoptRefWillBeNoop(new CSSPrimitiveValue(value, style)); |
| + } |
| template<typename T> static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(T value) |
| { |
| return adoptRefWillBeNoop(new CSSPrimitiveValue(value)); |
| @@ -383,6 +387,7 @@ private: |
| } |
| CSSPrimitiveValue(const Length&, float zoom); |
| CSSPrimitiveValue(const LengthSize&); |
| + CSSPrimitiveValue(const LengthSize&, const RenderStyle&); |
|
Zoltan
2014/04/29 21:43:24
Is the one parameter LengthSize version is used so
|
| CSSPrimitiveValue(const String&, UnitTypes); |
| CSSPrimitiveValue(double, UnitTypes); |
| @@ -405,6 +410,7 @@ private: |
| void init(const Length&); |
| void init(const LengthSize&); |
| + void init(const LengthSize&, const RenderStyle&); |
| void init(PassRefPtrWillBeRawPtr<Counter>); |
| void init(PassRefPtrWillBeRawPtr<Rect>); |
| void init(PassRefPtrWillBeRawPtr<Pair>); |