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

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

Issue 77863002: Update styleRecalc so that it traverses shadow insertion points in 2 pass algorithms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make styleRecalc traverse shadow trees in 2 pass algorithm Created 7 years 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool containsShadowRoots() const; 87 bool containsShadowRoots() const;
88 88
89 unsigned descendantShadowElementCount() const; 89 unsigned descendantShadowElementCount() const;
90 90
91 // For Internals, don't use this. 91 // For Internals, don't use this.
92 unsigned childShadowRootCount() const; 92 unsigned childShadowRootCount() const;
93 93
94 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; 94 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const;
95 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtr<HTMLShadowElement >); 95 void setShadowInsertionPointOfYoungerShadowRoot(PassRefPtr<HTMLShadowElement >);
96 96
97 InsertionPoint* shadowInsertionPoint() const;
98
97 void didAddInsertionPoint(InsertionPoint*); 99 void didAddInsertionPoint(InsertionPoint*);
98 void didRemoveInsertionPoint(InsertionPoint*); 100 void didRemoveInsertionPoint(InsertionPoint*);
99 const Vector<RefPtr<InsertionPoint> >& descendantInsertionPoints(); 101 const Vector<RefPtr<InsertionPoint> >& descendantInsertionPoints();
100 102
101 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } 103 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); }
102 104
103 public: 105 public:
104 Element* activeElement() const; 106 Element* activeElement() const;
105 107
106 bool applyAuthorStyles() const { return m_applyAuthorStyles; } 108 bool applyAuthorStyles() const { return m_applyAuthorStyles; }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 194
193 inline ShadowRoot& toShadowRoot(TreeScope& treeScope) 195 inline ShadowRoot& toShadowRoot(TreeScope& treeScope)
194 { 196 {
195 ASSERT_WITH_SECURITY_IMPLICATION(treeScope.rootNode() && treeScope.rootNode( )->isShadowRoot()); 197 ASSERT_WITH_SECURITY_IMPLICATION(treeScope.rootNode() && treeScope.rootNode( )->isShadowRoot());
196 return static_cast<ShadowRoot&>(treeScope); 198 return static_cast<ShadowRoot&>(treeScope);
197 } 199 }
198 200
199 } // namespace 201 } // namespace
200 202
201 #endif 203 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698