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

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

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. 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/Document.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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 virtual bool supportsSpatialNavigationFocus() const; 537 virtual bool supportsSpatialNavigationFocus() const;
538 538
539 void clearTabIndexExplicitlyIfNeeded(); 539 void clearTabIndexExplicitlyIfNeeded();
540 void setTabIndexExplicitly(short); 540 void setTabIndexExplicitly(short);
541 // Subclasses may override this method to affect focusability. Unlike 541 // Subclasses may override this method to affect focusability. Unlike
542 // supportsFocus, this method must be called on an up-to-date layout, so it 542 // supportsFocus, this method must be called on an up-to-date layout, so it
543 // may use the renderer to reason about focusability. This method cannot be 543 // may use the renderer to reason about focusability. This method cannot be
544 // moved to RenderObject because some focusable nodes don't have renderers, 544 // moved to RenderObject because some focusable nodes don't have renderers,
545 // e.g., HTMLOptionElement. 545 // e.g., HTMLOptionElement.
546 virtual bool rendererIsFocusable() const; 546 virtual bool rendererIsFocusable() const;
547 PassRefPtr<HTMLCollection> ensureCachedHTMLCollection(CollectionType); 547 PassRefPtrWillBeRawPtr<HTMLCollection> ensureCachedHTMLCollection(Collection Type);
548 HTMLCollection* cachedHTMLCollection(CollectionType); 548 HTMLCollection* cachedHTMLCollection(CollectionType);
549 549
550 // classAttributeChanged() exists to share code between 550 // classAttributeChanged() exists to share code between
551 // parseAttribute (called via setAttribute()) and 551 // parseAttribute (called via setAttribute()) and
552 // svgAttributeChanged (called when element.className.baseValue is set) 552 // svgAttributeChanged (called when element.className.baseValue is set)
553 void classAttributeChanged(const AtomicString& newClassString); 553 void classAttributeChanged(const AtomicString& newClassString);
554 554
555 PassRefPtr<RenderStyle> originalStyleForRenderer(); 555 PassRefPtr<RenderStyle> originalStyleForRenderer();
556 556
557 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); 557 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \ 879 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \
880 DEFINE_NODE_TYPE_CASTS(thisType, predicate) 880 DEFINE_NODE_TYPE_CASTS(thisType, predicate)
881 881
882 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ 882 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
883 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \ 883 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \
884 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) 884 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType)
885 885
886 } // namespace 886 } // namespace
887 887
888 #endif 888 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698