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

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

Issue 953693002: InlinedVisitor: Migrate css to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 template<typename T> inline operator T() const; // Defined in CSSPrimitiveVa lueMappings.h 314 template<typename T> inline operator T() const; // Defined in CSSPrimitiveVa lueMappings.h
315 315
316 static const char* unitTypeToString(UnitType); 316 static const char* unitTypeToString(UnitType);
317 String customCSSText(CSSTextFormattingFlags = QuoteCSSStringIfNeeded) const; 317 String customCSSText(CSSTextFormattingFlags = QuoteCSSStringIfNeeded) const;
318 318
319 bool isQuirkValue() { return m_isQuirkValue; } 319 bool isQuirkValue() { return m_isQuirkValue; }
320 320
321 bool equals(const CSSPrimitiveValue&) const; 321 bool equals(const CSSPrimitiveValue&) const;
322 322
323 void traceAfterDispatch(Visitor*); 323 DECLARE_TRACE_AFTER_DISPATCH();
324 324
325 static UnitType canonicalUnitTypeForCategory(UnitCategory); 325 static UnitType canonicalUnitTypeForCategory(UnitCategory);
326 static double conversionToCanonicalUnitsScaleFactor(UnitType); 326 static double conversionToCanonicalUnitsScaleFactor(UnitType);
327 327
328 // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false. 328 // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false.
329 static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&); 329 static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&);
330 static UnitType lengthUnitTypeToUnitType(LengthUnitType); 330 static UnitType lengthUnitTypeToUnitType(LengthUnitType);
331 331
332 private: 332 private:
333 CSSPrimitiveValue(CSSValueID); 333 CSSPrimitiveValue(CSSValueID);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 }; 387 };
388 388
389 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; 389 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray;
390 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray; 390 typedef CSSPrimitiveValue::CSSLengthTypeArray CSSLengthTypeArray;
391 391
392 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 392 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
393 393
394 } // namespace blink 394 } // namespace blink
395 395
396 #endif // CSSPrimitiveValue_h 396 #endif // CSSPrimitiveValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698