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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 Node* nextTo(const Node* node) const { return m_distribution.nextTo(node); } | 87 Node* nextTo(const Node* node) const { return m_distribution.nextTo(node); } |
88 Node* previousTo(const Node* node) const { return m_distribution.previousTo(
node); } | 88 Node* previousTo(const Node* node) const { return m_distribution.previousTo(
node); } |
89 | 89 |
90 static const CSSSelectorList& emptySelectorList(); | 90 static const CSSSelectorList& emptySelectorList(); |
91 | 91 |
92 virtual void accept(Visitor*) const OVERRIDE; | 92 virtual void accept(Visitor*) const OVERRIDE; |
93 | 93 |
94 protected: | 94 protected: |
95 InsertionPoint(const QualifiedName&, Handle<Document>); | 95 InsertionPoint(const QualifiedName&, Handle<Document>); |
96 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; | 96 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; |
97 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 97 virtual void childrenChanged(bool changedByParser, const Handle<Node>& befor
eChange, const Handle<Node>& afterChange, int childCountDelta) OVERRIDE; |
98 virtual InsertionNotificationRequest insertedInto(const Handle<ContainerNode
>&) OVERRIDE; | 98 virtual InsertionNotificationRequest insertedInto(const Handle<ContainerNode
>&) OVERRIDE; |
99 virtual void removedFrom(const Handle<ContainerNode>&) OVERRIDE; | 99 virtual void removedFrom(const Handle<ContainerNode>&) OVERRIDE; |
100 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 100 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
101 virtual bool isInsertionPointNode() const OVERRIDE { return true; } | 101 virtual bool isInsertionPointNode() const OVERRIDE { return true; } |
102 | 102 |
103 private: | 103 private: |
104 | 104 |
105 ContentDistribution m_distribution; | 105 ContentDistribution m_distribution; |
106 bool m_registeredWithShadowRoot; | 106 bool m_registeredWithShadowRoot; |
107 }; | 107 }; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return 0; | 162 return 0; |
163 } | 163 } |
164 | 164 |
165 Result<InsertionPoint> resolveReprojection(const Node*); | 165 Result<InsertionPoint> resolveReprojection(const Node*); |
166 | 166 |
167 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<Member<Ins
ertionPoint>, 8>& results); | 167 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<Member<Ins
ertionPoint>, 8>& results); |
168 | 168 |
169 } // namespace WebCore | 169 } // namespace WebCore |
170 | 170 |
171 #endif // InsertionPoint_h | 171 #endif // InsertionPoint_h |
OLD | NEW |