| Index: Source/WebCore/platform/Length.h
|
| ===================================================================
|
| --- Source/WebCore/platform/Length.h (revision 115918)
|
| +++ Source/WebCore/platform/Length.h (working copy)
|
| @@ -109,13 +109,8 @@
|
| return *this;
|
| }
|
|
|
| - inline float value() const
|
| + int value() const
|
| {
|
| - return getFloatValue();
|
| - }
|
| -
|
| - int intValue() const
|
| - {
|
| if (isCalculated()) {
|
| ASSERT_NOT_REACHED();
|
| return 0;
|
| @@ -123,6 +118,13 @@
|
| return getIntValue();
|
| }
|
|
|
| + // FIXME: When we switch to sub-pixel layout, value will return float by default, and this will inherit
|
| + // the current implementation of value().
|
| + int intValue() const
|
| + {
|
| + return value();
|
| + }
|
| +
|
| float percent() const
|
| {
|
| ASSERT(type() == Percent);
|
|
|