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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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/DocumentStyleSheetCollection.cpp ('k') | Source/core/dom/Element.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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const Attribute* attributeItem(unsigned index) const; 76 const Attribute* attributeItem(unsigned index) const;
77 const Attribute* getAttributeItem(const QualifiedName&) const; 77 const Attribute* getAttributeItem(const QualifiedName&) const;
78 size_t getAttributeItemIndex(const QualifiedName&) const; 78 size_t getAttributeItemIndex(const QualifiedName&) const;
79 size_t getAttributeItemIndex(const AtomicString& name, bool shouldIgnoreAttr ibuteCase) const; 79 size_t getAttributeItemIndex(const AtomicString& name, bool shouldIgnoreAttr ibuteCase) const;
80 80
81 bool hasID() const { return !m_idForStyleResolution.isNull(); } 81 bool hasID() const { return !m_idForStyleResolution.isNull(); }
82 bool hasClass() const { return !m_classNames.isNull(); } 82 bool hasClass() const { return !m_classNames.isNull(); }
83 83
84 bool isEquivalent(const ElementData* other) const; 84 bool isEquivalent(const ElementData* other) const;
85 85
86 void reportMemoryUsage(MemoryObjectInfo*) const;
87
88 bool isUnique() const { return m_isUnique; } 86 bool isUnique() const { return m_isUnique; }
89 87
90 protected: 88 protected:
91 ElementData(); 89 ElementData();
92 ElementData(unsigned arraySize); 90 ElementData(unsigned arraySize);
93 ElementData(const ElementData&, bool isUnique); 91 ElementData(const ElementData&, bool isUnique);
94 92
95 unsigned m_isUnique : 1; 93 unsigned m_isUnique : 1;
96 unsigned m_arraySize : 28; 94 unsigned m_arraySize : 28;
97 mutable unsigned m_presentationAttributeStyleIsDirty : 1; 95 mutable unsigned m_presentationAttributeStyleIsDirty : 1;
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const; 604 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const;
607 #endif 605 #endif
608 606
609 bool hasID() const; 607 bool hasID() const;
610 bool hasClass() const; 608 bool hasClass() const;
611 const SpaceSplitString& classNames() const; 609 const SpaceSplitString& classNames() const;
612 610
613 IntSize savedLayerScrollOffset() const; 611 IntSize savedLayerScrollOffset() const;
614 void setSavedLayerScrollOffset(const IntSize&); 612 void setSavedLayerScrollOffset(const IntSize&);
615 613
616 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
617
618 protected: 614 protected:
619 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype) 615 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype)
620 : ContainerNode(document, type) 616 : ContainerNode(document, type)
621 , m_tagName(tagName) 617 , m_tagName(tagName)
622 { 618 {
623 ScriptWrappable::init(this); 619 ScriptWrappable::init(this);
624 } 620 }
625 621
626 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 622 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
627 virtual void removedFrom(ContainerNode*) OVERRIDE; 623 virtual void removedFrom(ContainerNode*) OVERRIDE;
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 1013
1018 inline const Attribute* ElementData::attributeItem(unsigned index) const 1014 inline const Attribute* ElementData::attributeItem(unsigned index) const
1019 { 1015 {
1020 RELEASE_ASSERT(index < length()); 1016 RELEASE_ASSERT(index < length());
1021 return attributeBase() + index; 1017 return attributeBase() + index;
1022 } 1018 }
1023 1019
1024 } // namespace 1020 } // namespace
1025 1021
1026 #endif 1022 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698