Changeset 141556 in webkit
- Timestamp:
- Feb 1, 2013 12:52:01 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141555 r141556 1 2013-02-01 Tom Sepez <tsepez@chromium.org> 2 3 Dubious cast from HTMLCollection to HTMLAllCollection 4 https://bugs.webkit.org/show_bug.cgi?id=108538 5 6 Reviewed by Adam Barth. 7 8 Patch is tested by enabling V8 binding integrity on HTMLAllCollection and 9 running the existing tests without introducing new crashes. 10 11 * dom/Document.cpp: 12 (WebCore::Document::all): 13 Pass correct type to template. 14 15 * html/HTMLAllCollection.cpp: 16 (WebCore::HTMLAllCollection::create): 17 (WebCore::HTMLAllCollection::HTMLAllCollection): 18 * html/HTMLAllCollection.h: 19 (HTMLAllCollection): 20 Make create() method arguments compatible with template above. 21 22 * html/HTMLAllCollection.idl: 23 Enable binding integrity. 24 1 25 2013-02-01 Ken Kania <kkania@chromium.org> 2 26 -
trunk/Source/WebCore/dom/Document.cpp
r141524 r141556 4370 4370 PassRefPtr<HTMLCollection> Document::all() 4371 4371 { 4372 return ensure CachedCollection(DocAll);4372 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLAllCollection>(this, DocAll); 4373 4373 } 4374 4374 -
trunk/Source/WebCore/html/HTMLAllCollection.cpp
r123281 r141556 31 31 namespace WebCore { 32 32 33 PassRefPtr<HTMLAllCollection> HTMLAllCollection::create( Document* document)33 PassRefPtr<HTMLAllCollection> HTMLAllCollection::create(Node* node, CollectionType type) 34 34 { 35 return adoptRef(new HTMLAllCollection( document));35 return adoptRef(new HTMLAllCollection(node, type)); 36 36 } 37 37 38 HTMLAllCollection::HTMLAllCollection( Document* document)39 : HTMLCollection( document, DocAll, DoesNotOverrideItemAfter)38 HTMLAllCollection::HTMLAllCollection(Node* node, CollectionType type) 39 : HTMLCollection(node, type, DoesNotOverrideItemAfter) 40 40 { 41 41 } -
trunk/Source/WebCore/html/HTMLAllCollection.h
r122115 r141556 33 33 class HTMLAllCollection : public HTMLCollection { 34 34 public: 35 static PassRefPtr<HTMLAllCollection> create( Document*);35 static PassRefPtr<HTMLAllCollection> create(Node*, CollectionType); 36 36 virtual ~HTMLAllCollection(); 37 37 … … 39 39 40 40 private: 41 HTMLAllCollection( Document*);41 HTMLAllCollection(Node*, CollectionType); 42 42 }; 43 43 -
trunk/Source/WebCore/html/HTMLAllCollection.idl
r141034 r141556 31 31 GenerateIsReachable=ImplOwnerNodeRoot, 32 32 V8DependentLifetime, 33 V8SkipVTableValidation34 33 ] interface HTMLAllCollection { 35 34 readonly attribute unsigned long length;
Note: See TracChangeset
for help on using the changeset viewer.