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

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

Issue 2797973002: Removing duplicate functions and symbol names in core/css (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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // FIXME: oilpan: Should be a member, but no support for members in unions. 314 // FIXME: oilpan: Should be a member, but no support for members in unions.
315 // Just trace the raw ptr for now. 315 // Just trace the raw ptr for now.
316 CSSCalcValue* calc; 316 CSSCalcValue* calc;
317 } m_value; 317 } m_value;
318 }; 318 };
319 319
320 using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray; 320 using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray;
321 321
322 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 322 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
323 323
324 template <>
325 int CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const;
326
327 template <>
328 Length CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const;
329
330 template <>
331 unsigned CSSPrimitiveValue::computeLength(
332 const CSSToLengthConversionData&) const;
333
334 template <>
335 short CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const;
336
337 template <>
338 float CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const;
339
340 template <>
341 double CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const;
rune 2017/04/05 10:54:39 Can you explain why these are necessary?
Daniel Bratell 2017/04/05 12:05:39 The computeLength functions have explicit speciali
rune 2017/04/05 19:40:22 I don't know enough about templates and compilers
324 } // namespace blink 342 } // namespace blink
325 343
326 #endif // CSSPrimitiveValue_h 344 #endif // CSSPrimitiveValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698