OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool operator==(Element* element) const { return !m_item ? !element : m_
item->element() == element; } | 77 bool operator==(Element* element) const { return !m_item ? !element : m_
item->element() == element; } |
78 bool operator!=(Element* element) const { return !m_item ? !!element : m
_item->element() != element; } | 78 bool operator!=(Element* element) const { return !m_item ? !!element : m
_item->element() != element; } |
79 | 79 |
80 DEFINE_INLINE_TRACE() { visitor->trace(m_item); } | 80 DEFINE_INLINE_TRACE() { visitor->trace(m_item); } |
81 | 81 |
82 private: | 82 private: |
83 RefPtrWillBeMember<HTMLStackItem> m_item; | 83 RefPtrWillBeMember<HTMLStackItem> m_item; |
84 }; | 84 }; |
85 | 85 |
86 class Bookmark { | 86 class Bookmark { |
| 87 STACK_ALLOCATED(); |
87 public: | 88 public: |
88 explicit Bookmark(Entry* entry) | 89 explicit Bookmark(Entry* entry) |
89 : m_hasBeenMoved(false) | 90 : m_hasBeenMoved(false) |
90 , m_mark(entry) | 91 , m_mark(entry) |
91 { | 92 { |
92 } | 93 } |
93 | 94 |
94 void moveToAfter(Entry* before) | 95 void moveToAfter(Entry* before) |
95 { | 96 { |
96 m_hasBeenMoved = true; | 97 m_hasBeenMoved = true; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void ensureNoahsArkCondition(HTMLStackItem*); | 146 void ensureNoahsArkCondition(HTMLStackItem*); |
146 | 147 |
147 WillBeHeapVector<Entry> m_entries; | 148 WillBeHeapVector<Entry> m_entries; |
148 }; | 149 }; |
149 | 150 |
150 } // namespace blink | 151 } // namespace blink |
151 | 152 |
152 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::HTMLFormattingElementList::Ent
ry); | 153 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::HTMLFormattingElementList::Ent
ry); |
153 | 154 |
154 #endif // HTMLFormattingElementList_h | 155 #endif // HTMLFormattingElementList_h |
OLD | NEW |