Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: Source/core/html/HTMLFormControlsCollection.h

Issue 159503003: Do not cause unnecessary node lists invalidation on id/name attribute change (Closed) Base URL: svn://
Patch Set: Rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLFormControlsCollection.h
diff --git a/Source/core/html/HTMLFormControlsCollection.h b/Source/core/html/HTMLFormControlsCollection.h
index 84d6e97b2de8012a88300d94ceb07956ace2c005..d5d7029377f9a8a3d7c5a90e3b1b79efb202218c 100644
--- a/Source/core/html/HTMLFormControlsCollection.h
+++ b/Source/core/html/HTMLFormControlsCollection.h
@@ -49,13 +49,13 @@ public:
explicit HTMLFormControlsCollection(ContainerNode*);
- virtual void updateNameCache() const OVERRIDE;
+ virtual void updateIdNameCache() const OVERRIDE;
virtual void supportedPropertyNames(Vector<String>& names) OVERRIDE;
const Vector<FormAssociatedElement*>& formControlElements() const;
const Vector<HTMLImageElement*>& formImageElements() const;
virtual Element* virtualItemAfter(Element*) const OVERRIDE;
- virtual void invalidateCache() const OVERRIDE;
+ virtual void invalidateCache(Document* oldDocument = 0) const OVERRIDE;
mutable Element* m_cachedElement;
mutable unsigned m_cachedElementOffsetInArray;

Powered by Google App Engine
This is Rietveld 408576698