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

Side by Side Diff: Source/core/dom/shadow/ShadowRootRareData.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict Created 5 years, 4 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/dom/SelectorQuery.h ('k') | Source/core/editing/SelectionController.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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #ifndef ShadowRootRareData_h 31 #ifndef ShadowRootRareData_h
32 #define ShadowRootRareData_h 32 #define ShadowRootRareData_h
33 33
34 #include "core/dom/shadow/InsertionPoint.h" 34 #include "core/dom/shadow/InsertionPoint.h"
35 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class ShadowRootRareData : public NoBaseWillBeGarbageCollected<ShadowRootRareDat a> { 40 class ShadowRootRareData : public NoBaseWillBeGarbageCollected<ShadowRootRareDat a> {
41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ShadowRootRareData);
41 public: 42 public:
42 ShadowRootRareData() 43 ShadowRootRareData()
43 : m_descendantShadowElementCount(0) 44 : m_descendantShadowElementCount(0)
44 , m_descendantContentElementCount(0) 45 , m_descendantContentElementCount(0)
45 , m_childShadowRootCount(0) 46 , m_childShadowRootCount(0)
46 { 47 {
47 } 48 }
48 49
49 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const { return m_shadowInsertionPointOfYoungerShadowRoot.get(); } 50 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const { return m_shadowInsertionPointOfYoungerShadowRoot.get(); }
50 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtrWillBeRawPtr<HTMLS hadowElement> shadowInsertionPoint) { m_shadowInsertionPointOfYoungerShadowRoot = shadowInsertionPoint; } 51 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtrWillBeRawPtr<HTMLS hadowElement> shadowInsertionPoint) { m_shadowInsertionPointOfYoungerShadowRoot = shadowInsertionPoint; }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 else 108 else
108 ASSERT_NOT_REACHED(); 109 ASSERT_NOT_REACHED();
109 110
110 ASSERT(m_descendantContentElementCount >= 0); 111 ASSERT(m_descendantContentElementCount >= 0);
111 ASSERT(m_descendantShadowElementCount >= 0); 112 ASSERT(m_descendantShadowElementCount >= 0);
112 } 113 }
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif 117 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/SelectorQuery.h ('k') | Source/core/editing/SelectionController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698