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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 static const CSSSelectorList& emptySelectorList(); | 89 static const CSSSelectorList& emptySelectorList(); |
90 | 90 |
91 protected: | 91 protected: |
92 InsertionPoint(const QualifiedName&, Document*); | 92 InsertionPoint(const QualifiedName&, Document*); |
93 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; | 93 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; |
94 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 94 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
95 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 95 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
96 virtual void removedFrom(ContainerNode*) OVERRIDE; | 96 virtual void removedFrom(ContainerNode*) OVERRIDE; |
97 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 97 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 98 virtual void willRecalcStyle(StyleChange) OVERRIDE; |
98 | 99 |
99 private: | 100 private: |
100 | 101 |
101 ContentDistribution m_distribution; | 102 ContentDistribution m_distribution; |
102 bool m_registeredWithShadowRoot; | 103 bool m_registeredWithShadowRoot; |
103 }; | 104 }; |
104 | 105 |
105 inline InsertionPoint* toInsertionPoint(Node* node) | 106 inline InsertionPoint* toInsertionPoint(Node* node) |
106 { | 107 { |
107 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isInsertionPoint()); | 108 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isInsertionPoint()); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 return 0; | 159 return 0; |
159 } | 160 } |
160 | 161 |
161 InsertionPoint* resolveReprojection(const Node*); | 162 InsertionPoint* resolveReprojection(const Node*); |
162 | 163 |
163 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<InsertionP
oint*, 8>& results); | 164 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<InsertionP
oint*, 8>& results); |
164 | 165 |
165 } // namespace WebCore | 166 } // namespace WebCore |
166 | 167 |
167 #endif // InsertionPoint_h | 168 #endif // InsertionPoint_h |
OLD | NEW |