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

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

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 unsigned childShadowRootCount() const { return m_childShadowRootCount; } 64 unsigned childShadowRootCount() const { return m_childShadowRootCount; }
65 65
66 const WillBeHeapVector<RefPtrWillBeMember<InsertionPoint> >& descendantInser tionPoints() { return m_descendantInsertionPoints; } 66 const WillBeHeapVector<RefPtrWillBeMember<InsertionPoint> >& descendantInser tionPoints() { return m_descendantInsertionPoints; }
67 void setDescendantInsertionPoints(WillBeHeapVector<RefPtrWillBeMember<Insert ionPoint> >& list) { m_descendantInsertionPoints.swap(list); } 67 void setDescendantInsertionPoints(WillBeHeapVector<RefPtrWillBeMember<Insert ionPoint> >& list) { m_descendantInsertionPoints.swap(list); }
68 void clearDescendantInsertionPoints() { m_descendantInsertionPoints.clear(); } 68 void clearDescendantInsertionPoints() { m_descendantInsertionPoints.clear(); }
69 69
70 StyleSheetList* styleSheets() { return m_styleSheetList.get(); } 70 StyleSheetList* styleSheets() { return m_styleSheetList.get(); }
71 void setStyleSheets(PassRefPtrWillBeRawPtr<StyleSheetList> styleSheetList) { m_styleSheetList = styleSheetList; } 71 void setStyleSheets(PassRefPtrWillBeRawPtr<StyleSheetList> styleSheetList) { m_styleSheetList = styleSheetList; }
72 72
73 void trace(Visitor* visitor) 73 DEFINE_INLINE_TRACE()
74 { 74 {
75 visitor->trace(m_shadowInsertionPointOfYoungerShadowRoot); 75 visitor->trace(m_shadowInsertionPointOfYoungerShadowRoot);
76 visitor->trace(m_descendantInsertionPoints); 76 visitor->trace(m_descendantInsertionPoints);
77 visitor->trace(m_styleSheetList); 77 visitor->trace(m_styleSheetList);
78 } 78 }
79 79
80 private: 80 private:
81 RefPtrWillBeMember<HTMLShadowElement> m_shadowInsertionPointOfYoungerShadowR oot; 81 RefPtrWillBeMember<HTMLShadowElement> m_shadowInsertionPointOfYoungerShadowR oot;
82 unsigned m_descendantShadowElementCount; 82 unsigned m_descendantShadowElementCount;
83 unsigned m_descendantContentElementCount; 83 unsigned m_descendantContentElementCount;
(...skipping 23 matching lines...) Expand all
107 else 107 else
108 ASSERT_NOT_REACHED(); 108 ASSERT_NOT_REACHED();
109 109
110 ASSERT(m_descendantContentElementCount >= 0); 110 ASSERT(m_descendantContentElementCount >= 0);
111 ASSERT(m_descendantShadowElementCount >= 0); 111 ASSERT(m_descendantShadowElementCount >= 0);
112 } 112 }
113 113
114 } // namespace blink 114 } // namespace blink
115 115
116 #endif 116 #endif
OLDNEW
« Source/core/dom/Text.cpp ('K') | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698