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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. 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, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
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 25 matching lines...) Expand all
36 // Override operator new to allocate CSSValue subtype objects onto 36 // Override operator new to allocate CSSValue subtype objects onto
37 // a dedicated heap. 37 // a dedicated heap.
38 GC_PLUGIN_IGNORE("crbug.com/443854") 38 GC_PLUGIN_IGNORE("crbug.com/443854")
39 void* operator new(size_t size) { return allocateObject(size, false); } 39 void* operator new(size_t size) { return allocateObject(size, false); }
40 static void* allocateObject(size_t size, bool isEager) { 40 static void* allocateObject(size_t size, bool isEager) {
41 ThreadState* state = 41 ThreadState* state =
42 ThreadStateFor<ThreadingTrait<CSSValue>::Affinity>::state(); 42 ThreadStateFor<ThreadingTrait<CSSValue>::Affinity>::state();
43 const char* typeName = "blink::CSSValue"; 43 const char* typeName = "blink::CSSValue";
44 return ThreadHeap::allocateOnArenaIndex( 44 return ThreadHeap::allocateOnArenaIndex(
45 state, size, 45 state, size,
46 isEager ? BlinkGC::EagerSweepArenaIndex : BlinkGC::CSSValueArenaIndex, 46 is_eager ? BlinkGC::kEagerSweepArenaIndex : BlinkGC::kCSSValueArenaIndex ,
47 GCInfoTrait<CSSValue>::index(), typeName); 47 GCInfoTrait<CSSValue>::Index(), kTypeName);
48 } 48 }
49 49
50 // TODO(sashab): Remove this method and move logic to the caller. 50 // TODO(sashab): Remove this method and move logic to the caller.
51 static CSSValue* create(const Length& value, float zoom); 51 static CSSValue* create(const Length& value, float zoom);
52 52
53 String cssText() const; 53 String cssText() const;
54 54
55 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } 55 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; }
56 bool isIdentifierValue() const { return m_classType == IdentifierClass; } 56 bool isIdentifierValue() const { return m_classType == IdentifierClass; }
57 bool isValuePair() const { return m_classType == ValuePairClass; } 57 bool isValuePair() const { return m_classType == ValuePairClass; }
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 return true; 278 return true;
279 } 279 }
280 280
281 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 281 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
282 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ 282 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \
283 value.predicate) 283 value.predicate)
284 284
285 } // namespace blink 285 } // namespace blink
286 286
287 #endif // CSSValue_h 287 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSRuleList.h ('k') | third_party/WebKit/Source/core/css/ElementRuleCollector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698