Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: Source/core/html/parser/HTMLFormattingElementList.h

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/parser/HTMLEntityTable.h ('k') | Source/core/html/parser/HTMLInputStream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLEntityTable.h ('k') | Source/core/html/parser/HTMLInputStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698