[webkit-reviews] review granted: [Bug 65428] dir=auto needs to work on value of input and textarea elements : [Attachment 102705] Patch.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 2 17:53:45 PDT 2011
Darin Adler <darin at apple.com> has granted Yael <yael.aharon at nokia.com>'s
request for review:
Bug 65428: dir=auto needs to work on value of input and textarea elements
https://bugs.webkit.org/show_bug.cgi?id=65428
Attachment 102705: Patch.
https://bugs.webkit.org/attachment.cgi?id=102705&action=review
------- Additional Comments from Darin Adler <darin at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=102705&action=review
> Source/WebCore/html/HTMLElement.cpp:876
> + HTMLTextFormControlElement* textElement =
toTextFormControl(const_cast<HTMLElement*>(this));
> + if (textElement) {
Would be elegant to put this definition inside the if so it gets scoped.
> Source/WebCore/html/HTMLElement.cpp:881
> + return (textDirection == WTF::Unicode::LeftToRight) ? LTR : RTL;
Is the WTF:: needed here?
> Source/WebCore/html/HTMLElement.cpp:888
> // Skip bdi, script and style elements
> - if (equalIgnoringCase(node->nodeName(), "bdi") ||
node->hasTagName(scriptTag) || node->hasTagName(styleTag)) {
> + if (equalIgnoringCase(node->nodeName(), "bdi") ||
node->hasTagName(scriptTag) || node->hasTagName(styleTag)
> + || (node->isElementNode() &&
toElement(node)->isTextFormControl())) {
The comment no longer matches the code.
> Source/WebCore/html/HTMLInputElement.cpp:666
> + // When typing in a input field, childrenChanged is not called, so we
need to force the directionality check.
should be "an input field"
More information about the webkit-reviews
mailing list