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

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

Issue 265793017: Oilpan: move node/element rare data objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + add some asserts for registration Node being present. Created 6 years, 7 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/dom/MutationObserverRegistration.cpp ('k') | Source/core/dom/Node.cpp » ('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) 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 static void reattachWhitespaceSiblings(Text* start); 778 static void reattachWhitespaceSiblings(Text* start);
779 779
780 #if !ENABLE(OILPAN) 780 #if !ENABLE(OILPAN)
781 void willBeDeletedFromDocument(); 781 void willBeDeletedFromDocument();
782 #endif 782 #endif
783 783
784 bool hasRareData() const { return getFlag(HasRareDataFlag); } 784 bool hasRareData() const { return getFlag(HasRareDataFlag); }
785 785
786 NodeRareData* rareData() const; 786 NodeRareData* rareData() const;
787 NodeRareData& ensureRareData(); 787 NodeRareData& ensureRareData();
788 #if !ENABLE(OILPAN)
788 void clearRareData(); 789 void clearRareData();
789 790
790 #if !ENABLE(OILPAN)
791 void clearEventTargetData(); 791 void clearEventTargetData();
792 #endif 792 #endif
793 793
794 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla g); } 794 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla g); }
795 795
796 void setTreeScope(TreeScope* scope) { m_treeScope = scope; } 796 void setTreeScope(TreeScope* scope) { m_treeScope = scope; }
797 797
798 // isTreeScopeInitialized() can be false 798 // isTreeScopeInitialized() can be false
799 // - in the destruction of Document or ShadowRoot where m_treeScope is set t o null or 799 // - in the destruction of Document or ShadowRoot where m_treeScope is set t o null or
800 // - in the Node constructor called by these two classes where m_treeScope i s set by TreeScope ctor. 800 // - in the Node constructor called by these two classes where m_treeScope i s set by TreeScope ctor.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 } // namespace WebCore 925 } // namespace WebCore
926 926
927 #ifndef NDEBUG 927 #ifndef NDEBUG
928 // Outside the WebCore namespace for ease of invocation from gdb. 928 // Outside the WebCore namespace for ease of invocation from gdb.
929 void showNode(const WebCore::Node*); 929 void showNode(const WebCore::Node*);
930 void showTree(const WebCore::Node*); 930 void showTree(const WebCore::Node*);
931 void showNodePath(const WebCore::Node*); 931 void showNodePath(const WebCore::Node*);
932 #endif 932 #endif
933 933
934 #endif 934 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/MutationObserverRegistration.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698