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

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

Issue 342283005: Make collection caching code more consistent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stop including NodeListsNodeData.h in ContainerNode.h Created 6 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 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 bool supportsSpatialNavigationFocus() const; 536 bool supportsSpatialNavigationFocus() const;
537 537
538 void clearTabIndexExplicitlyIfNeeded(); 538 void clearTabIndexExplicitlyIfNeeded();
539 void setTabIndexExplicitly(short); 539 void setTabIndexExplicitly(short);
540 // Subclasses may override this method to affect focusability. Unlike 540 // Subclasses may override this method to affect focusability. Unlike
541 // supportsFocus, this method must be called on an up-to-date layout, so it 541 // supportsFocus, this method must be called on an up-to-date layout, so it
542 // may use the renderer to reason about focusability. This method cannot be 542 // may use the renderer to reason about focusability. This method cannot be
543 // moved to RenderObject because some focusable nodes don't have renderers, 543 // moved to RenderObject because some focusable nodes don't have renderers,
544 // e.g., HTMLOptionElement. 544 // e.g., HTMLOptionElement.
545 virtual bool rendererIsFocusable() const; 545 virtual bool rendererIsFocusable() const;
546 PassRefPtrWillBeRawPtr<HTMLCollection> ensureCachedHTMLCollection(Collection Type);
547 HTMLCollection* cachedHTMLCollection(CollectionType);
548 546
549 // classAttributeChanged() exists to share code between 547 // classAttributeChanged() exists to share code between
550 // parseAttribute (called via setAttribute()) and 548 // parseAttribute (called via setAttribute()) and
551 // svgAttributeChanged (called when element.className.baseValue is set) 549 // svgAttributeChanged (called when element.className.baseValue is set)
552 void classAttributeChanged(const AtomicString& newClassString); 550 void classAttributeChanged(const AtomicString& newClassString);
553 551
554 PassRefPtr<RenderStyle> originalStyleForRenderer(); 552 PassRefPtr<RenderStyle> originalStyleForRenderer();
555 553
556 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); 554 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
557 555
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 869 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
872 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 870 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
873 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 871 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
874 { \ 872 { \
875 return adoptRefWillBeNoop(new T(tagName, document)); \ 873 return adoptRefWillBeNoop(new T(tagName, document)); \
876 } 874 }
877 875
878 } // namespace 876 } // namespace
879 877
880 #endif 878 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698