| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 bool hasDistribution() const { return !m_distribution.isEmpty(); } | 46 bool hasDistribution() const { return !m_distribution.isEmpty(); } |
| 47 void setDistribution(ContentDistribution&); | 47 void setDistribution(ContentDistribution&); |
| 48 void clearDistribution() { m_distribution.clear(); } | 48 void clearDistribution() { m_distribution.clear(); } |
| 49 bool isActive() const; | 49 bool isActive() const; |
| 50 bool canBeActive() const; | 50 bool canBeActive() const; |
| 51 | 51 |
| 52 bool isShadowInsertionPoint() const; | 52 bool isShadowInsertionPoint() const; |
| 53 bool isContentInsertionPoint() const; | 53 bool isContentInsertionPoint() const; |
| 54 | 54 |
| 55 PassRefPtr<NodeList> getDistributedNodes(); | 55 PassRefPtrWillBeRawPtr<NodeList> getDistributedNodes(); |
| 56 | 56 |
| 57 virtual bool canAffectSelector() const { return false; } | 57 virtual bool canAffectSelector() const { return false; } |
| 58 | 58 |
| 59 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 59 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
| 60 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 60 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
| 61 | 61 |
| 62 bool shouldUseFallbackElements() const; | 62 bool shouldUseFallbackElements() const; |
| 63 | 63 |
| 64 size_t size() const { return m_distribution.size(); } | 64 size_t size() const { return m_distribution.size(); } |
| 65 Node* at(size_t index) const { return m_distribution.at(index).get(); } | 65 Node* at(size_t index) const { return m_distribution.at(index).get(); } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 return 0; | 111 return 0; |
| 112 } | 112 } |
| 113 | 113 |
| 114 const InsertionPoint* resolveReprojection(const Node*); | 114 const InsertionPoint* resolveReprojection(const Node*); |
| 115 | 115 |
| 116 void collectDestinationInsertionPoints(const Node&, WillBeHeapVector<RawPtrWillB
eMember<InsertionPoint>, 8>& results); | 116 void collectDestinationInsertionPoints(const Node&, WillBeHeapVector<RawPtrWillB
eMember<InsertionPoint>, 8>& results); |
| 117 | 117 |
| 118 } // namespace WebCore | 118 } // namespace WebCore |
| 119 | 119 |
| 120 #endif // InsertionPoint_h | 120 #endif // InsertionPoint_h |
| OLD | NEW |