Changeset 99821 in webkit
- Timestamp:
- Nov 10, 2011, 12:17:27 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 deleted
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/form-dirname-attribute-expected.txt (deleted)
-
LayoutTests/fast/forms/form-dirname-attribute.html (deleted)
-
LayoutTests/fast/forms/submit-form-with-dirname-attribute-expected.txt (deleted)
-
LayoutTests/fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute-expected.txt (deleted)
-
LayoutTests/fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute.html (deleted)
-
LayoutTests/fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor-expected.txt (deleted)
-
LayoutTests/fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor.html (deleted)
-
LayoutTests/fast/forms/submit-form-with-dirname-attribute.html (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLAttributeNames.in (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.idl (modified) (1 diff)
-
Source/WebCore/html/HTMLTextAreaElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLTextAreaElement.idl (modified) (1 diff)
-
Source/WebCore/html/HTMLTextFormControlElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLTextFormControlElement.h (modified) (1 diff)
-
Source/WebCore/html/TextFieldInputType.cpp (modified) (3 diffs)
-
Source/WebCore/html/TextFieldInputType.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r99820 r99821 1 2011-11-10 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r99816. 4 http://trac.webkit.org/changeset/99816 5 https://bugs.webkit.org/show_bug.cgi?id=72003 6 7 compilation failed on mac (Requested by loislo on #webkit). 8 9 * fast/forms/form-dirname-attribute-expected.txt: Removed. 10 * fast/forms/form-dirname-attribute.html: Removed. 11 * fast/forms/submit-form-with-dirname-attribute-expected.txt: Removed. 12 * fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute-expected.txt: Removed. 13 * fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute.html: Removed. 14 * fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor-expected.txt: Removed. 15 * fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor.html: Removed. 16 * fast/forms/submit-form-with-dirname-attribute.html: Removed. 17 1 18 2011-11-10 Yuta Kitamura <yutak@chromium.org> 2 19 -
trunk/Source/WebCore/ChangeLog
r99819 r99821 1 2011-11-10 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r99816. 4 http://trac.webkit.org/changeset/99816 5 https://bugs.webkit.org/show_bug.cgi?id=72003 6 7 compilation failed on mac (Requested by loislo on #webkit). 8 9 * html/HTMLAttributeNames.in: 10 * html/HTMLInputElement.idl: 11 * html/HTMLTextAreaElement.cpp: 12 (WebCore::HTMLTextAreaElement::appendFormData): 13 * html/HTMLTextAreaElement.idl: 14 * html/HTMLTextFormControlElement.cpp: 15 * html/HTMLTextFormControlElement.h: 16 * html/TextFieldInputType.cpp: 17 * html/TextFieldInputType.h: 18 1 19 2011-11-09 Pavel Feldman <pfeldman@google.com> 2 20 -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r99816 r99821 91 91 dir 92 92 direction 93 dirname94 93 disabled 95 94 download -
trunk/Source/WebCore/html/HTMLInputElement.idl
r99816 r99821 24 24 attribute [ConvertNullToNullString] DOMString defaultValue; 25 25 attribute [Reflect=checked] boolean defaultChecked; 26 attribute [Reflect] DOMString dirName;27 26 readonly attribute HTMLFormElement form; 28 27 attribute [Reflect, URL] DOMString formAction; -
trunk/Source/WebCore/html/HTMLTextAreaElement.cpp
r99816 r99821 174 174 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : value(); 175 175 encoding.appendData(name(), text); 176 177 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr); 178 if (!dirnameAttrValue.isNull()) 179 encoding.appendData(dirnameAttrValue, directionForFormData()); 180 return true; 176 return true; 181 177 } 182 178 -
trunk/Source/WebCore/html/HTMLTextAreaElement.idl
r99816 r99821 28 28 attribute [Reflect] DOMString accessKey; 29 29 attribute long cols; 30 attribute [Reflect] DOMString dirName;31 30 attribute [Reflect] boolean disabled; 32 31 attribute [Reflect] boolean autofocus; -
trunk/Source/WebCore/html/HTMLTextFormControlElement.cpp
r99816 r99821 571 571 } 572 572 573 const Element* parentHTMLElement(const Element* element)574 {575 while (element) {576 element = element->parentElement();577 if (element && element->isHTMLElement())578 return element;579 }580 return 0;581 }582 583 String HTMLTextFormControlElement::directionForFormData() const584 {585 for (const Element* element = this; element; element = parentHTMLElement(element)) {586 const AtomicString& dirAttributeValue = element->fastGetAttribute(dirAttr);587 if (dirAttributeValue.isNull())588 continue;589 590 if (equalIgnoringCase(dirAttributeValue, "rtl") || equalIgnoringCase(dirAttributeValue, "ltr"))591 return dirAttributeValue;592 593 if (equalIgnoringCase(dirAttributeValue, "auto")) {594 bool isAuto;595 TextDirection textDirection = static_cast<const HTMLElement*>(element)->directionalityIfhasDirAutoAttribute(isAuto);596 return textDirection == RTL ? "rtl" : "ltr";597 }598 }599 600 return "ltr";601 }602 603 573 } // namespace Webcore -
trunk/Source/WebCore/html/HTMLTextFormControlElement.h
r99816 r99821 80 80 String innerTextValue() const; 81 81 82 String directionForFormData() const;83 84 82 protected: 85 83 HTMLTextFormControlElement(const QualifiedName&, Document*, HTMLFormElement*); -
trunk/Source/WebCore/html/TextFieldInputType.cpp
r99816 r99821 34 34 35 35 #include "BeforeTextInsertedEvent.h" 36 #include "FormDataList.h"37 36 #include "Frame.h" 38 37 #include "HTMLInputElement.h" 39 #include "HTMLNames.h"40 38 #include "KeyboardEvent.h" 41 39 #include "Page.h" … … 52 50 namespace WebCore { 53 51 54 using namespace HTMLNames;55 56 52 TextFieldInputType::TextFieldInputType(HTMLInputElement* element) 57 53 : InputType(element) … … 369 365 } 370 366 371 bool TextFieldInputType::appendFormData(FormDataList& list, bool multipart) const372 {373 InputType::appendFormData(list, multipart);374 const AtomicString& dirnameAttrValue = element()->fastGetAttribute(dirnameAttr);375 if (!dirnameAttrValue.isNull())376 list.appendData(dirnameAttrValue, element()->directionForFormData());377 return true;378 }379 380 367 } // namespace WebCore -
trunk/Source/WebCore/html/TextFieldInputType.h
r99816 r99821 36 36 namespace WebCore { 37 37 38 class FormDataList;39 38 class SpinButtonElement; 40 39 … … 79 78 virtual HTMLElement* placeholderElement() const; 80 79 virtual void updatePlaceholderText(); 81 virtual bool appendFormData(FormDataList&, bool multipart) const;82 80 83 81 RefPtr<HTMLElement> m_container;
Note:
See TracChangeset
for help on using the changeset viewer.