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

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

Issue 1485353006: Oilpan: no destructor needed for CSSPrimitiveValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return adoptRefWillBeNoop(new CSSPrimitiveValue(value, zoom)); 197 return adoptRefWillBeNoop(new CSSPrimitiveValue(value, zoom));
198 } 198 }
199 template<typename T> static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create (T value) 199 template<typename T> static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create (T value)
200 { 200 {
201 static_assert(!WTF::IsSameType<T, CSSValueID>::value, "Do not call creat e() with a CSSValueID; call createIdentifier() instead"); 201 static_assert(!WTF::IsSameType<T, CSSValueID>::value, "Do not call creat e() with a CSSValueID; call createIdentifier() instead");
202 return adoptRefWillBeNoop(new CSSPrimitiveValue(value)); 202 return adoptRefWillBeNoop(new CSSPrimitiveValue(value));
203 } 203 }
204 204
205 ~CSSPrimitiveValue(); 205 ~CSSPrimitiveValue();
206 206
207 void cleanup();
208
209 UnitType typeWithCalcResolved() const; 207 UnitType typeWithCalcResolved() const;
210 208
211 double computeDegrees() const; 209 double computeDegrees() const;
212 double computeSeconds() const; 210 double computeSeconds() const;
213 211
214 // Computes a length in pixels, resolving relative lengths 212 // Computes a length in pixels, resolving relative lengths
215 template<typename T> T computeLength(const CSSToLengthConversionData&) const ; 213 template<typename T> T computeLength(const CSSToLengthConversionData&) const ;
216 214
217 // Converts to a Length (Fixed, Percent or Calculated) 215 // Converts to a Length (Fixed, Percent or Calculated)
218 Length convertToLength(const CSSToLengthConversionData&) const; 216 Length convertToLength(const CSSToLengthConversionData&) const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 }; 279 };
282 280
283 using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray; 281 using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray;
284 using CSSLengthTypeArray = CSSPrimitiveValue::CSSLengthTypeArray; 282 using CSSLengthTypeArray = CSSPrimitiveValue::CSSLengthTypeArray;
285 283
286 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 284 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
287 285
288 } // namespace blink 286 } // namespace blink
289 287
290 #endif // CSSPrimitiveValue_h 288 #endif // CSSPrimitiveValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698