| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 static CSSPrimitiveValue* Create(T value) { | 226 static CSSPrimitiveValue* Create(T value) { |
| 227 return new CSSPrimitiveValue(value); | 227 return new CSSPrimitiveValue(value); |
| 228 } | 228 } |
| 229 | 229 |
| 230 ~CSSPrimitiveValue(); | 230 ~CSSPrimitiveValue(); |
| 231 | 231 |
| 232 UnitType TypeWithCalcResolved() const; | 232 UnitType TypeWithCalcResolved() const; |
| 233 | 233 |
| 234 double ComputeDegrees() const; | 234 double ComputeDegrees() const; |
| 235 double ComputeSeconds() const; | 235 double ComputeSeconds() const; |
| 236 double ComputeDotsPerPixel() const; |
| 236 | 237 |
| 237 // Computes a length in pixels, resolving relative lengths | 238 // Computes a length in pixels, resolving relative lengths |
| 238 template <typename T> | 239 template <typename T> |
| 239 T ComputeLength(const CSSToLengthConversionData&) const; | 240 T ComputeLength(const CSSToLengthConversionData&) const; |
| 240 | 241 |
| 241 // Converts to a Length (Fixed, Percent or Calculated) | 242 // Converts to a Length (Fixed, Percent or Calculated) |
| 242 Length ConvertToLength(const CSSToLengthConversionData&) const; | 243 Length ConvertToLength(const CSSToLengthConversionData&) const; |
| 243 | 244 |
| 244 double GetDoubleValue() const; | 245 double GetDoubleValue() const; |
| 245 float GetFloatValue() const { return GetValue<float>(); } | 246 float GetFloatValue() const { return GetValue<float>(); } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 short CSSPrimitiveValue::ComputeLength(const CSSToLengthConversionData&) const; | 336 short CSSPrimitiveValue::ComputeLength(const CSSToLengthConversionData&) const; |
| 336 | 337 |
| 337 template <> | 338 template <> |
| 338 float CSSPrimitiveValue::ComputeLength(const CSSToLengthConversionData&) const; | 339 float CSSPrimitiveValue::ComputeLength(const CSSToLengthConversionData&) const; |
| 339 | 340 |
| 340 template <> | 341 template <> |
| 341 double CSSPrimitiveValue::ComputeLength(const CSSToLengthConversionData&) const; | 342 double CSSPrimitiveValue::ComputeLength(const CSSToLengthConversionData&) const; |
| 342 } // namespace blink | 343 } // namespace blink |
| 343 | 344 |
| 344 #endif // CSSPrimitiveValue_h | 345 #endif // CSSPrimitiveValue_h |
| OLD | NEW |