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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 PassRefPtr<NodeList> getDistributedNodes() const; | 65 PassRefPtr<NodeList> getDistributedNodes() const; |
66 | 66 |
67 virtual MatchType matchTypeFor(Node*) { return AlwaysMatches; } | 67 virtual MatchType matchTypeFor(Node*) { return AlwaysMatches; } |
68 virtual const CSSSelectorList& selectorList() { return emptySelectorList();
} | 68 virtual const CSSSelectorList& selectorList() { return emptySelectorList();
} |
69 virtual Type insertionPointType() const = 0; | 69 virtual Type insertionPointType() const = 0; |
70 virtual bool canAffectSelector() const { return false; } | 70 virtual bool canAffectSelector() const { return false; } |
71 | 71 |
72 bool resetStyleInheritance() const; | 72 bool resetStyleInheritance() const; |
73 void setResetStyleInheritance(bool); | 73 void setResetStyleInheritance(bool); |
74 | 74 |
75 virtual void attach(); | 75 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
76 virtual void detach(); | 76 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
77 | 77 |
78 bool shouldUseFallbackElements() const; | 78 bool shouldUseFallbackElements() const; |
79 | 79 |
80 size_t indexOf(Node* node) const { return m_distribution.find(node); } | 80 size_t indexOf(Node* node) const { return m_distribution.find(node); } |
81 bool contains(const Node*) const; | 81 bool contains(const Node*) const; |
82 size_t size() const { return m_distribution.size(); } | 82 size_t size() const { return m_distribution.size(); } |
83 Node* at(size_t index) const { return m_distribution.at(index).get(); } | 83 Node* at(size_t index) const { return m_distribution.at(index).get(); } |
84 Node* first() const { return m_distribution.isEmpty() ? 0 : m_distribution.f
irst().get(); } | 84 Node* first() const { return m_distribution.isEmpty() ? 0 : m_distribution.f
irst().get(); } |
85 Node* last() const { return m_distribution.isEmpty() ? 0 : m_distribution.la
st().get(); } | 85 Node* last() const { return m_distribution.isEmpty() ? 0 : m_distribution.la
st().get(); } |
86 Node* nextTo(const Node* node) const { return m_distribution.nextTo(node); } | 86 Node* nextTo(const Node* node) const { return m_distribution.nextTo(node); } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return 0; | 159 return 0; |
160 } | 160 } |
161 | 161 |
162 InsertionPoint* resolveReprojection(const Node*); | 162 InsertionPoint* resolveReprojection(const Node*); |
163 | 163 |
164 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<InsertionP
oint*, 8>& results); | 164 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<InsertionP
oint*, 8>& results); |
165 | 165 |
166 } // namespace WebCore | 166 } // namespace WebCore |
167 | 167 |
168 #endif // InsertionPoint_h | 168 #endif // InsertionPoint_h |
OLD | NEW |