Changeset 84693 in webkit
- Timestamp:
- Apr 22, 2011 3:36:46 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r84686 r84693 1 2011-04-22 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Sam Weinig. 4 5 HTMLFormControlElement::labels should allow custom attributes. 6 https://bugs.webkit.org/show_bug.cgi?id=59128 7 8 * fast/forms/labels-custom-property-expected.txt: Added. 9 * fast/forms/labels-custom-property.html: Added. 10 1 11 2011-04-22 Csaba Osztrogonác <ossy@webkit.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r84690 r84693 1 2011-04-22 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Sam Weinig. 4 5 HTMLFormControlElement::labels should allow custom attributes. 6 https://bugs.webkit.org/show_bug.cgi?id=59128 7 8 Cache the labels list when it is created and keep using it for future 9 labels calls. 10 11 Test: fast/forms/labels-custom-property.html 12 13 * html/HTMLFormControlElement.cpp: 14 (WebCore::HTMLFormControlElement::labels): 15 1 16 2011-04-22 Adrienne Walker <enne@google.com> 2 17 -
trunk/Source/WebCore/dom/NodeRareData.h
r84586 r84693 35 35 namespace WebCore { 36 36 37 class LabelsNodeList; 37 38 class TreeScope; 38 39 … … 57 58 TagNodeListCacheNS m_tagNodeListCacheNS; 58 59 59 RefPtr<DynamicNodeList>m_labelsNodeListCache;60 LabelsNodeList* m_labelsNodeListCache; 60 61 61 62 static PassOwnPtr<NodeListsNodeData> create() -
trunk/Source/WebCore/html/HTMLFormControlElement.cpp
r83016 r84693 472 472 } 473 473 474 return LabelsNodeList::create(this); 474 if (data->nodeLists()->m_labelsNodeListCache) 475 return data->nodeLists()->m_labelsNodeListCache; 476 477 RefPtr<LabelsNodeList> list = LabelsNodeList::create(this); 478 data->nodeLists()->m_labelsNodeListCache = list.get(); 479 return list.release(); 475 480 } 476 481 -
trunk/Source/WebCore/html/LabelsNodeList.cpp
r60232 r84693 33 33 using namespace HTMLNames; 34 34 35 LabelsNodeList::LabelsNodeList( PassRefPtr<Node>forNode )35 LabelsNodeList::LabelsNodeList(Node* forNode ) 36 36 : DynamicNodeList(forNode->document()) , m_forNode(forNode) 37 37 { -
trunk/Source/WebCore/html/LabelsNodeList.h
r60232 r84693 33 33 class LabelsNodeList : public DynamicNodeList { 34 34 public: 35 static PassRefPtr<LabelsNodeList> create( PassRefPtr<Node>forNode)35 static PassRefPtr<LabelsNodeList> create(Node* forNode) 36 36 { 37 37 return adoptRef(new LabelsNodeList(forNode)); … … 40 40 41 41 protected: 42 LabelsNodeList( PassRefPtr<Node>forNode);42 LabelsNodeList(Node* forNode); 43 43 44 44 virtual bool nodeMatches(Element*) const;
Note: See TracChangeset
for help on using the changeset viewer.