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

Side by Side Diff: sky/engine/core/css/CSSPrimitiveValue.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/CSSMediaRule.cpp ('k') | sky/engine/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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 static const char* unitTypeToString(UnitType); 320 static const char* unitTypeToString(UnitType);
321 String customCSSText(CSSTextFormattingFlags = QuoteCSSStringIfNeeded) const; 321 String customCSSText(CSSTextFormattingFlags = QuoteCSSStringIfNeeded) const;
322 322
323 bool isQuirkValue() { return m_isQuirkValue; } 323 bool isQuirkValue() { return m_isQuirkValue; }
324 324
325 PassRefPtr<CSSPrimitiveValue> cloneForCSSOM() const; 325 PassRefPtr<CSSPrimitiveValue> cloneForCSSOM() const;
326 void setCSSOMSafe() { m_isCSSOMSafe = true; } 326 void setCSSOMSafe() { m_isCSSOMSafe = true; }
327 327
328 bool equals(const CSSPrimitiveValue&) const; 328 bool equals(const CSSPrimitiveValue&) const;
329 329
330 void traceAfterDispatch(Visitor*);
331
332 static UnitType canonicalUnitTypeForCategory(UnitCategory); 330 static UnitType canonicalUnitTypeForCategory(UnitCategory);
333 static double conversionToCanonicalUnitsScaleFactor(UnitType); 331 static double conversionToCanonicalUnitsScaleFactor(UnitType);
334 332
335 // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false. 333 // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false.
336 static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&); 334 static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&);
337 static UnitType lengthUnitTypeToUnitType(LengthUnitType); 335 static UnitType lengthUnitTypeToUnitType(LengthUnitType);
338 336
339 private: 337 private:
340 CSSPrimitiveValue(CSSValueID); 338 CSSPrimitiveValue(CSSValueID);
341 CSSPrimitiveValue(CSSPropertyID); 339 CSSPrimitiveValue(CSSPropertyID);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } m_value; 389 } m_value;
392 }; 390 };
393 391
394 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; 392 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray;
395 393
396 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 394 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
397 395
398 } // namespace blink 396 } // namespace blink
399 397
400 #endif // CSSPrimitiveValue_h 398 #endif // CSSPrimitiveValue_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSMediaRule.cpp ('k') | sky/engine/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698