| Index: third_party/WebKit/Source/platform/Length.h
|
| diff --git a/third_party/WebKit/Source/platform/Length.h b/third_party/WebKit/Source/platform/Length.h
|
| index 5cd722dc0b59018d91929a30fd604f0b26a42f75..63a0eafcd32cb3f547c78deb6df456da36be2517 100644
|
| --- a/third_party/WebKit/Source/platform/Length.h
|
| +++ b/third_party/WebKit/Source/platform/Length.h
|
| @@ -159,11 +159,18 @@ public:
|
| return getIntValue();
|
| }
|
|
|
| + float pixels() const
|
| + {
|
| + ASSERT(type() == Fixed);
|
| + return getFloatValue();
|
| + }
|
| +
|
| float percent() const
|
| {
|
| ASSERT(type() == Percent);
|
| return getFloatValue();
|
| }
|
| +
|
| PixelsAndPercent pixelsAndPercent() const;
|
|
|
| CalculationValue& calculationValue() const;
|
|
|