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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class QualifiedName; 33 class QualifiedName;
34 34
35 struct CSSParserFunction; 35 struct CSSParserFunction;
36 struct CSSParserCalcFunction; 36 struct CSSParserCalcFunction;
37 class CSSParserValueList; 37 class CSSParserValueList;
38 38
39 struct CSSParserValue { 39 struct CSSParserValue {
40 ALLOW_ONLY_INLINE_ALLOCATION(); 40 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
41 CSSValueID id; 41 CSSValueID id;
42 bool isInt; 42 bool isInt;
43 union { 43 union {
44 double fValue; 44 double fValue;
45 int iValue; 45 int iValue;
46 CSSParserString string; 46 CSSParserString string;
47 CSSParserFunction* function; 47 CSSParserFunction* function;
48 CSSParserCalcFunction* calcFunction; 48 CSSParserCalcFunction* calcFunction;
49 CSSParserValueList* valueList; 49 CSSParserValueList* valueList;
50 struct { 50 struct {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 { 149 {
150 id = CSSValueInvalid; 150 id = CSSValueInvalid;
151 this->valueList = valueList.leakPtr(); 151 this->valueList = valueList.leakPtr();
152 m_unit = ValueList; 152 m_unit = ValueList;
153 isInt = false; 153 isInt = false;
154 } 154 }
155 155
156 } 156 }
157 157
158 #endif 158 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698