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

Side by Side Diff: Source/core/dom/Document.h

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 class MouseEventWithHitTestResults; 125 class MouseEventWithHitTestResults;
126 class NamedFlowCollection; 126 class NamedFlowCollection;
127 class NodeFilter; 127 class NodeFilter;
128 class NodeIterator; 128 class NodeIterator;
129 class Page; 129 class Page;
130 class PlatformMouseEvent; 130 class PlatformMouseEvent;
131 class Prerenderer; 131 class Prerenderer;
132 class ProcessingInstruction; 132 class ProcessingInstruction;
133 class Range; 133 class Range;
134 class RegisteredEventListener; 134 class RegisteredEventListener;
135 class RenderArena;
136 class RenderView; 135 class RenderView;
137 class RequestAnimationFrameCallback; 136 class RequestAnimationFrameCallback;
138 class SVGDocumentExtensions; 137 class SVGDocumentExtensions;
139 class ScriptElementData; 138 class ScriptElementData;
140 class ScriptRunner; 139 class ScriptRunner;
141 class ScriptableDocumentParser; 140 class ScriptableDocumentParser;
142 class ScriptedAnimationController; 141 class ScriptedAnimationController;
143 class SecurityOrigin; 142 class SecurityOrigin;
144 class SegmentedString; 143 class SegmentedString;
145 class SelectorQueryCache; 144 class SelectorQueryCache;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 CachedResourceLoader* cachedResourceLoader() { return m_cachedResourceLoader .get(); } 500 CachedResourceLoader* cachedResourceLoader() { return m_cachedResourceLoader .get(); }
502 501
503 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 502 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
504 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 503 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
505 void prepareForDestruction(); 504 void prepareForDestruction();
506 505
507 // Override ScriptExecutionContext methods to do additional work 506 // Override ScriptExecutionContext methods to do additional work
508 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension) O VERRIDE; 507 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension) O VERRIDE;
509 virtual void resumeActiveDOMObjects() OVERRIDE; 508 virtual void resumeActiveDOMObjects() OVERRIDE;
510 509
511 RenderArena* renderArena() { return m_renderArena.get(); }
512
513 // Implemented in RenderView.h to avoid a cyclic header dependency this just 510 // Implemented in RenderView.h to avoid a cyclic header dependency this just
514 // returns renderer so callers can avoid verbose casts. 511 // returns renderer so callers can avoid verbose casts.
515 RenderView* renderView() const; 512 RenderView* renderView() const;
516 513
517 // Shadow the implementations on Node to provide faster access for documents . 514 // Shadow the implementations on Node to provide faster access for documents .
518 RenderObject* renderer() const { return m_renderer; } 515 RenderObject* renderer() const { return m_renderer; }
519 void setRenderer(RenderObject* renderer) 516 void setRenderer(RenderObject* renderer)
520 { 517 {
521 m_renderer = renderer; 518 m_renderer = renderer;
522 Node::setRenderer(renderer); 519 Node::setRenderer(renderer);
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 bool m_updateFocusAppearanceRestoresSelection; 1254 bool m_updateFocusAppearanceRestoresSelection;
1258 1255
1259 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter 1256 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter
1260 unsigned m_ignoreDestructiveWriteCount; 1257 unsigned m_ignoreDestructiveWriteCount;
1261 1258
1262 StringWithDirection m_title; 1259 StringWithDirection m_title;
1263 StringWithDirection m_rawTitle; 1260 StringWithDirection m_rawTitle;
1264 bool m_titleSetExplicitly; 1261 bool m_titleSetExplicitly;
1265 RefPtr<Element> m_titleElement; 1262 RefPtr<Element> m_titleElement;
1266 1263
1267 RefPtr<RenderArena> m_renderArena;
1268
1269 OwnPtr<AXObjectCache> m_axObjectCache; 1264 OwnPtr<AXObjectCache> m_axObjectCache;
1270 OwnPtr<DocumentMarkerController> m_markers; 1265 OwnPtr<DocumentMarkerController> m_markers;
1271 1266
1272 Timer<Document> m_updateFocusAppearanceTimer; 1267 Timer<Document> m_updateFocusAppearanceTimer;
1273 1268
1274 Element* m_cssTarget; 1269 Element* m_cssTarget;
1275 1270
1276 // FIXME: Merge these 2 variables into an enum. Also, FrameLoader::m_didCall ImplicitClose 1271 // FIXME: Merge these 2 variables into an enum. Also, FrameLoader::m_didCall ImplicitClose
1277 // is almost a duplication of this data, so that should probably get merged in too. 1272 // is almost a duplication of this data, so that should probably get merged in too.
1278 // FIXME: Document::m_processingLoadEvent and DocumentLoader::m_wasOnloadHan dled are roughly the same 1273 // FIXME: Document::m_processingLoadEvent and DocumentLoader::m_wasOnloadHan dled are roughly the same
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 inline bool Node::isDocumentNode() const 1446 inline bool Node::isDocumentNode() const
1452 { 1447 {
1453 return this == documentInternal(); 1448 return this == documentInternal();
1454 } 1449 }
1455 1450
1456 Node* eventTargetNodeForDocument(Document*); 1451 Node* eventTargetNodeForDocument(Document*);
1457 1452
1458 } // namespace WebCore 1453 } // namespace WebCore
1459 1454
1460 #endif // Document_h 1455 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698