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

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

Issue 27519002: Have Node::ensureRareData() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/dom/Element.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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); 790 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter);
791 } 791 }
792 792
793 virtual void didMoveToNewDocument(Document& oldDocument); 793 virtual void didMoveToNewDocument(Document& oldDocument);
794 794
795 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const { } 795 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const { }
796 796
797 bool hasRareData() const { return getFlag(HasRareDataFlag); } 797 bool hasRareData() const { return getFlag(HasRareDataFlag); }
798 798
799 NodeRareData* rareData() const; 799 NodeRareData* rareData() const;
800 NodeRareData* ensureRareData(); 800 NodeRareData& ensureRareData();
801 void clearRareData(); 801 void clearRareData();
802 802
803 void clearEventTargetData(); 803 void clearEventTargetData();
804 804
805 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla g); } 805 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla g); }
806 806
807 Document* documentInternal() const { return treeScope().documentScope(); } 807 Document* documentInternal() const { return treeScope().documentScope(); }
808 void setTreeScope(TreeScope* scope) { m_treeScope = scope; } 808 void setTreeScope(TreeScope* scope) { m_treeScope = scope; }
809 809
810 private: 810 private:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 936
937 } // namespace WebCore 937 } // namespace WebCore
938 938
939 #ifndef NDEBUG 939 #ifndef NDEBUG
940 // Outside the WebCore namespace for ease of invocation from gdb. 940 // Outside the WebCore namespace for ease of invocation from gdb.
941 void showTree(const WebCore::Node*); 941 void showTree(const WebCore::Node*);
942 void showNodePath(const WebCore::Node*); 942 void showNodePath(const WebCore::Node*);
943 #endif 943 #endif
944 944
945 #endif 945 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698