OLD | NEW |
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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 nodes.append(m_distribution.at(i)); | 112 nodes.append(m_distribution.at(i)); |
113 | 113 |
114 return StaticNodeList::adopt(nodes); | 114 return StaticNodeList::adopt(nodes); |
115 } | 115 } |
116 | 116 |
117 bool InsertionPoint::rendererIsNeeded(const NodeRenderingContext& context) | 117 bool InsertionPoint::rendererIsNeeded(const NodeRenderingContext& context) |
118 { | 118 { |
119 return !isShadowBoundary() && HTMLElement::rendererIsNeeded(context); | 119 return !isShadowBoundary() && HTMLElement::rendererIsNeeded(context); |
120 } | 120 } |
121 | 121 |
122 void InsertionPoint::childrenChanged(bool changedByParser, Node* beforeChange, N
ode* afterChange, int childCountDelta) | 122 void InsertionPoint::childrenChanged(bool changedByParser, const Handle<Node>& b
eforeChange, const Handle<Node>& afterChange, int childCountDelta) |
123 { | 123 { |
124 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 124 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
125 if (Handle<ShadowRoot> root = containingShadowRoot()) | 125 if (Handle<ShadowRoot> root = containingShadowRoot()) |
126 if (ElementShadow* rootOwner = root->owner()) | 126 if (ElementShadow* rootOwner = root->owner()) |
127 rootOwner->invalidateDistribution(); | 127 rootOwner->invalidateDistribution(); |
128 } | 128 } |
129 | 129 |
130 Node::InsertionNotificationRequest InsertionPoint::insertedInto(const Handle<Con
tainerNode>& insertionPoint) | 130 Node::InsertionNotificationRequest InsertionPoint::insertedInto(const Handle<Con
tainerNode>& insertionPoint) |
131 { | 131 { |
132 HTMLElement::insertedInto(insertionPoint); | 132 HTMLElement::insertedInto(insertionPoint); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 return; | 255 return; |
256 } | 256 } |
257 } | 257 } |
258 | 258 |
259 void InsertionPoint::accept(Visitor* visitor) const | 259 void InsertionPoint::accept(Visitor* visitor) const |
260 { | 260 { |
261 HTMLElement::accept(visitor); | 261 HTMLElement::accept(visitor); |
262 } | 262 } |
263 | 263 |
264 } // namespace WebCore | 264 } // namespace WebCore |
OLD | NEW |