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

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

Issue 16951003: Fix broken AttachContext from r152289 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unwanted comments and passed context to Shadow DOM elements Created 7 years, 6 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/NodeRenderingContext.cpp ('k') | Source/core/dom/shadow/ElementShadow.cpp » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 removeAllShadowRoots(); 51 removeAllShadowRoots();
52 } 52 }
53 53
54 Element* host() const; 54 Element* host() const;
55 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } 55 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); }
56 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } 56 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); }
57 ElementShadow* containingShadow() const; 57 ElementShadow* containingShadow() const;
58 58
59 ShadowRoot* addShadowRoot(Element* shadowHost, ShadowRoot::ShadowRootType); 59 ShadowRoot* addShadowRoot(Element* shadowHost, ShadowRoot::ShadowRootType);
60 60
61 void attach(); 61 void attach(const Node::AttachContext& = Node::AttachContext());
62 void detach(); 62 void detach(const Node::AttachContext& = Node::AttachContext());
esprehn 2013/06/14 22:25:27 I don't think you need the default values. We shou
63 63
64 bool childNeedsStyleRecalc() const; 64 bool childNeedsStyleRecalc() const;
65 bool needsStyleRecalc() const; 65 bool needsStyleRecalc() const;
66 void recalcStyle(Node::StyleChange); 66 void recalcStyle(Node::StyleChange);
67 void removeAllEventListeners(); 67 void removeAllEventListeners();
68 68
69 void invalidateDistribution() { m_distributor.invalidateDistribution(host()) ; } 69 void invalidateDistribution() { m_distributor.invalidateDistribution(host()) ; }
70 void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectS elector(host(), mask); } 70 void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectS elector(host(), mask); }
71 void willAffectSelector() { m_distributor.willAffectSelector(host()); } 71 void willAffectSelector() { m_distributor.willAffectSelector(host()); }
72 72
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (Node* parent = node->parentNode()) 122 if (Node* parent = node->parentNode())
123 if (parent->isElementNode()) 123 if (parent->isElementNode())
124 return toElement(parent)->shadow(); 124 return toElement(parent)->shadow();
125 return 0; 125 return 0;
126 } 126 }
127 127
128 128
129 } // namespace 129 } // namespace
130 130
131 #endif 131 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRenderingContext.cpp ('k') | Source/core/dom/shadow/ElementShadow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698