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

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

Issue 20123003: [oilpan] The Node hierarchy should have correct accept method chains (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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 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 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2898 { 2898 {
2899 ensureElementRareData()->setHasPendingResources(true); 2899 ensureElementRareData()->setHasPendingResources(true);
2900 } 2900 }
2901 2901
2902 void Element::clearHasPendingResources() 2902 void Element::clearHasPendingResources()
2903 { 2903 {
2904 ensureElementRareData()->setHasPendingResources(false); 2904 ensureElementRareData()->setHasPendingResources(false);
2905 } 2905 }
2906 #endif 2906 #endif
2907 2907
2908 void Element::acceptHeapVisitor(Visitor* visitor) const
2909 {
2910 ContainerNode::acceptHeapVisitor(visitor);
2911 }
2912
2908 void ElementData::finalize() 2913 void ElementData::finalize()
2909 { 2914 {
2910 if (m_isUnique) 2915 if (m_isUnique)
2911 static_cast<UniqueElementData*>(this)->~UniqueElementData(); 2916 static_cast<UniqueElementData*>(this)->~UniqueElementData();
2912 else 2917 else
2913 static_cast<ShareableElementData*>(this)->~ShareableElementData(); 2918 static_cast<ShareableElementData*>(this)->~ShareableElementData();
2914 } 2919 }
2915 2920
2916 ElementData::ElementData() 2921 ElementData::ElementData()
2917 : m_isUnique(true) 2922 : m_isUnique(true)
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
3137 return &m_attributeVector.at(index); 3142 return &m_attributeVector.at(index);
3138 } 3143 }
3139 3144
3140 void UniqueElementData::acceptHeapVisitor(Visitor* visitor) const 3145 void UniqueElementData::acceptHeapVisitor(Visitor* visitor) const
3141 { 3146 {
3142 visitor->visit(m_presentationAttributeStyle); 3147 visitor->visit(m_presentationAttributeStyle);
3143 ElementData::acceptHeapVisitor(visitor); 3148 ElementData::acceptHeapVisitor(visitor);
3144 } 3149 }
3145 3150
3146 } // namespace WebCore 3151 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698