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

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

Issue 2750003002: Fixed broken type names in memory-infra tracing. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('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, 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 22 matching lines...) Expand all
33 33
34 class CORE_EXPORT CSSValue : public GarbageCollectedFinalized<CSSValue> { 34 class CORE_EXPORT CSSValue : public GarbageCollectedFinalized<CSSValue> {
35 public: 35 public:
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 isEager ? BlinkGC::EagerSweepArenaIndex : BlinkGC::CSSValueArenaIndex,
47 GCInfoTrait<CSSValue>::index(), typeName); 47 GCInfoTrait<CSSValue>::index(), typeName);
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;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return true; 274 return true;
275 } 275 }
276 276
277 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 277 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
278 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ 278 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \
279 value.predicate) 279 value.predicate)
280 280
281 } // namespace blink 281 } // namespace blink
282 282
283 #endif // CSSValue_h 283 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698