Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h

Issue 2812523002: Support animating <resolution> custom properties (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698