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

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

Issue 25497002: Generate toCSSFooValue() for CSS child values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/css/CSSMixFunctionValue.h ('k') | Source/core/css/CSSToStyleMap.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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 Counter* counter; 378 Counter* counter;
379 Rect* rect; 379 Rect* rect;
380 Quad* quad; 380 Quad* quad;
381 unsigned rgbcolor; 381 unsigned rgbcolor;
382 Pair* pair; 382 Pair* pair;
383 CSSBasicShape* shape; 383 CSSBasicShape* shape;
384 CSSCalcValue* calc; 384 CSSCalcValue* calc;
385 } m_value; 385 } m_value;
386 }; 386 };
387 387
388 inline CSSPrimitiveValue* toCSSPrimitiveValue(CSSValue* value) 388 DEFINE_CSS_VALUE_TYPE_CASTS(PrimitiveValue);
389 {
390 ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isPrimitiveValue());
391 return static_cast<CSSPrimitiveValue*>(value);
392 }
393
394 inline const CSSPrimitiveValue* toCSSPrimitiveValue(const CSSValue* value)
395 {
396 ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isPrimitiveValue());
397 return static_cast<const CSSPrimitiveValue*>(value);
398 }
399
400 // Catch unneeded cast.
401 void toCSSPrimitiveValue(const CSSPrimitiveValue*);
402 389
403 } // namespace WebCore 390 } // namespace WebCore
404 391
405 #endif // CSSPrimitiveValue_h 392 #endif // CSSPrimitiveValue_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSMixFunctionValue.h ('k') | Source/core/css/CSSToStyleMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698