Changeset 250767 in webkit
- Timestamp:
- Oct 5, 2019 10:35:41 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r250766 r250767 1 2019-10-05 Zalan Bujtas <zalan@apple.com> 2 3 [LFC] LayoutChildtIteratorAdapter -> LayoutChildIteratorAdapter 4 https://bugs.webkit.org/show_bug.cgi?id=202612 5 <rdar://problem/56007611> 6 7 Reviewed by Anders Carlsson. 8 9 * layout/layouttree/LayoutChildIterator.h: 10 (WebCore::Layout::LayoutChildIterator<T>::LayoutChildIterator): 11 (WebCore::Layout::LayoutChildIterator<T>::operator): 12 (WebCore::Layout::LayoutChildIteratorAdapter<T>::LayoutChildIteratorAdapter): 13 (WebCore::Layout::LayoutChildIteratorAdapter<T>::begin const): 14 (WebCore::Layout::LayoutChildIteratorAdapter<T>::end const): 15 (WebCore::Layout::LayoutChildIteratorAdapter<T>::first const): 16 (WebCore::Layout::LayoutChildIteratorAdapter<T>::last const): 17 (WebCore::Layout::childrenOfType): 18 (WebCore::Layout::LayoutChildtIterator<T>::LayoutChildtIterator): Deleted. 19 (WebCore::Layout::LayoutChildtIterator<T>::operator): Deleted. 20 (WebCore::Layout::LayoutChildtIteratorAdapter<T>::LayoutChildtIteratorAdapter): Deleted. 21 (WebCore::Layout::LayoutChildtIteratorAdapter<T>::begin const): Deleted. 22 (WebCore::Layout::LayoutChildtIteratorAdapter<T>::end const): Deleted. 23 (WebCore::Layout::LayoutChildtIteratorAdapter<T>::first const): Deleted. 24 (WebCore::Layout::LayoutChildtIteratorAdapter<T>::last const): Deleted. 25 1 26 2019-10-05 Zalan Bujtas <zalan@apple.com> 2 27 -
trunk/Source/WebCore/layout/layouttree/LayoutChildIterator.h
r231093 r250767 34 34 35 35 template <typename T> 36 class LayoutChild tIterator : public LayoutIterator<T> {36 class LayoutChildIterator : public LayoutIterator<T> { 37 37 public: 38 LayoutChild tIterator(const Container& parent);39 LayoutChild tIterator(const Container& parent, const T* current);40 LayoutChild tIterator& operator++();38 LayoutChildIterator(const Container& parent); 39 LayoutChildIterator(const Container& parent, const T* current); 40 LayoutChildIterator& operator++(); 41 41 }; 42 42 43 43 template <typename T> 44 class LayoutChild tIteratorAdapter {44 class LayoutChildIteratorAdapter { 45 45 public: 46 LayoutChild tIteratorAdapter(const Container& parent);47 LayoutChild tIterator<T> begin() const;48 LayoutChild tIterator<T> end() const;46 LayoutChildIteratorAdapter(const Container& parent); 47 LayoutChildIterator<T> begin() const; 48 LayoutChildIterator<T> end() const; 49 49 const T* first() const; 50 50 const T* last() const; … … 54 54 }; 55 55 56 template <typename T> LayoutChild tIteratorAdapter<T> childrenOfType(const Container&);56 template <typename T> LayoutChildIteratorAdapter<T> childrenOfType(const Container&); 57 57 58 // LayoutChild tIterator58 // LayoutChildIterator 59 59 60 60 template <typename T> 61 inline LayoutChild tIterator<T>::LayoutChildtIterator(const Container& parent)61 inline LayoutChildIterator<T>::LayoutChildIterator(const Container& parent) 62 62 : LayoutIterator<T>(&parent) 63 63 { … … 65 65 66 66 template <typename T> 67 inline LayoutChild tIterator<T>::LayoutChildtIterator(const Container& parent, const T* current)67 inline LayoutChildIterator<T>::LayoutChildIterator(const Container& parent, const T* current) 68 68 : LayoutIterator<T>(&parent, current) 69 69 { … … 71 71 72 72 template <typename T> 73 inline LayoutChild tIterator<T>& LayoutChildtIterator<T>::operator++()73 inline LayoutChildIterator<T>& LayoutChildIterator<T>::operator++() 74 74 { 75 return static_cast<LayoutChild tIterator<T>&>(LayoutIterator<T>::traverseNextSibling());75 return static_cast<LayoutChildIterator<T>&>(LayoutIterator<T>::traverseNextSibling()); 76 76 } 77 77 78 // LayoutChild tIteratorAdapter78 // LayoutChildIteratorAdapter 79 79 80 80 template <typename T> 81 inline LayoutChild tIteratorAdapter<T>::LayoutChildtIteratorAdapter(const Container& parent)81 inline LayoutChildIteratorAdapter<T>::LayoutChildIteratorAdapter(const Container& parent) 82 82 : m_parent(parent) 83 83 { … … 85 85 86 86 template <typename T> 87 inline LayoutChild tIterator<T> LayoutChildtIteratorAdapter<T>::begin() const87 inline LayoutChildIterator<T> LayoutChildIteratorAdapter<T>::begin() const 88 88 { 89 return LayoutChild tIterator<T>(m_parent, Traversal::firstChild<T>(m_parent));89 return LayoutChildIterator<T>(m_parent, Traversal::firstChild<T>(m_parent)); 90 90 } 91 91 92 92 template <typename T> 93 inline LayoutChild tIterator<T> LayoutChildtIteratorAdapter<T>::end() const93 inline LayoutChildIterator<T> LayoutChildIteratorAdapter<T>::end() const 94 94 { 95 return LayoutChild tIterator<T>(m_parent);95 return LayoutChildIterator<T>(m_parent); 96 96 } 97 97 98 98 template <typename T> 99 inline const T* LayoutChild tIteratorAdapter<T>::first() const99 inline const T* LayoutChildIteratorAdapter<T>::first() const 100 100 { 101 101 return Traversal::firstChild<T>(m_parent); … … 103 103 104 104 template <typename T> 105 inline const T* LayoutChild tIteratorAdapter<T>::last() const105 inline const T* LayoutChildIteratorAdapter<T>::last() const 106 106 { 107 107 return Traversal::lastChild<T>(m_parent); … … 109 109 110 110 template <typename T> 111 inline LayoutChild tIteratorAdapter<T> childrenOfType(const Container& parent)111 inline LayoutChildIteratorAdapter<T> childrenOfType(const Container& parent) 112 112 { 113 return LayoutChild tIteratorAdapter<T>(parent);113 return LayoutChildIteratorAdapter<T>(parent); 114 114 } 115 115
Note: See TracChangeset
for help on using the changeset viewer.