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

Side by Side Diff: Source/core/html/HTMLFrameOwnerElement.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/HTMLElement.h ('k') | Source/core/html/HTMLImageFallbackHelper.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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } 61 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; }
62 62
63 virtual bool loadedNonEmptyDocument() const { return false; } 63 virtual bool loadedNonEmptyDocument() const { return false; }
64 virtual void didLoadNonEmptyDocument() { } 64 virtual void didLoadNonEmptyDocument() { }
65 65
66 void setWidget(PassRefPtrWillBeRawPtr<Widget>); 66 void setWidget(PassRefPtrWillBeRawPtr<Widget>);
67 Widget* ownedWidget() const; 67 Widget* ownedWidget() const;
68 68
69 class UpdateSuspendScope { 69 class UpdateSuspendScope {
70 STACK_ALLOCATED();
70 public: 71 public:
71 UpdateSuspendScope(); 72 UpdateSuspendScope();
72 ~UpdateSuspendScope(); 73 ~UpdateSuspendScope();
73 74
74 private: 75 private:
75 void performDeferredWidgetTreeOperations(); 76 void performDeferredWidgetTreeOperations();
76 }; 77 };
77 78
78 // FrameOwner overrides: 79 // FrameOwner overrides:
79 bool isLocal() const override { return true; } 80 bool isLocal() const override { return true; }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots(); 130 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo ots();
130 131
131 RawPtrWillBeMember<Node> m_root; 132 RawPtrWillBeMember<Node> m_root;
132 }; 133 };
133 134
134 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 135 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
135 136
136 } // namespace blink 137 } // namespace blink
137 138
138 #endif // HTMLFrameOwnerElement_h 139 #endif // HTMLFrameOwnerElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLElement.h ('k') | Source/core/html/HTMLImageFallbackHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698