| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 { | 772 { |
| 773 for (const HTMLElement* element = this; element; element = Traversal<HTMLEle
ment>::firstAncestor(*element)) { | 773 for (const HTMLElement* element = this; element; element = Traversal<HTMLEle
ment>::firstAncestor(*element)) { |
| 774 const AtomicString& dirAttributeValue = element->fastGetAttribute(dirAtt
r); | 774 const AtomicString& dirAttributeValue = element->fastGetAttribute(dirAtt
r); |
| 775 if (dirAttributeValue.isNull()) | 775 if (dirAttributeValue.isNull()) |
| 776 continue; | 776 continue; |
| 777 | 777 |
| 778 if (equalIgnoringCase(dirAttributeValue, "rtl") || equalIgnoringCase(dir
AttributeValue, "ltr")) | 778 if (equalIgnoringCase(dirAttributeValue, "rtl") || equalIgnoringCase(dir
AttributeValue, "ltr")) |
| 779 return dirAttributeValue; | 779 return dirAttributeValue; |
| 780 | 780 |
| 781 if (equalIgnoringCase(dirAttributeValue, "auto")) { | 781 if (equalIgnoringCase(dirAttributeValue, "auto")) { |
| 782 bool isAuto; | 782 TextDirection textDirection = element->directionality(); |
| 783 TextDirection textDirection = element->directionalityIfhasDirAutoAtt
ribute(isAuto); | |
| 784 return textDirection == RTL ? "rtl" : "ltr"; | 783 return textDirection == RTL ? "rtl" : "ltr"; |
| 785 } | 784 } |
| 786 } | 785 } |
| 787 | 786 |
| 788 return "ltr"; | 787 return "ltr"; |
| 789 } | 788 } |
| 790 | 789 |
| 791 HTMLElement* HTMLTextFormControlElement::innerEditorElement() const | 790 HTMLElement* HTMLTextFormControlElement::innerEditorElement() const |
| 792 { | 791 { |
| 793 return toHTMLElement(userAgentShadowRoot()->getElementById(ShadowElementName
s::innerEditor())); | 792 return toHTMLElement(userAgentShadowRoot()->getElementById(ShadowElementName
s::innerEditor())); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 } | 1027 } |
| 1029 | 1028 |
| 1030 void HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(const Ele
ment& source) | 1029 void HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(const Ele
ment& source) |
| 1031 { | 1030 { |
| 1032 const HTMLTextFormControlElement& sourceElement = static_cast<const HTMLText
FormControlElement&>(source); | 1031 const HTMLTextFormControlElement& sourceElement = static_cast<const HTMLText
FormControlElement&>(source); |
| 1033 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; | 1032 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; |
| 1034 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); | 1033 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); |
| 1035 } | 1034 } |
| 1036 | 1035 |
| 1037 } // namespace blink | 1036 } // namespace blink |
| OLD | NEW |