| 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 continue; | 885 continue; |
| 886 | 886 |
| 887 if (equalIgnoringCase(dirAttributeValue, "rtl") || | 887 if (equalIgnoringCase(dirAttributeValue, "rtl") || |
| 888 equalIgnoringCase(dirAttributeValue, "ltr")) | 888 equalIgnoringCase(dirAttributeValue, "ltr")) |
| 889 return dirAttributeValue; | 889 return dirAttributeValue; |
| 890 | 890 |
| 891 if (equalIgnoringCase(dirAttributeValue, "auto")) { | 891 if (equalIgnoringCase(dirAttributeValue, "auto")) { |
| 892 bool isAuto; | 892 bool isAuto; |
| 893 TextDirection textDirection = | 893 TextDirection textDirection = |
| 894 element->directionalityIfhasDirAutoAttribute(isAuto); | 894 element->directionalityIfhasDirAutoAttribute(isAuto); |
| 895 return textDirection == RTL ? "rtl" : "ltr"; | 895 return textDirection == TextDirection::Rtl ? "rtl" : "ltr"; |
| 896 } | 896 } |
| 897 } | 897 } |
| 898 | 898 |
| 899 return "ltr"; | 899 return "ltr"; |
| 900 } | 900 } |
| 901 | 901 |
| 902 HTMLElement* TextControlElement::innerEditorElement() const { | 902 HTMLElement* TextControlElement::innerEditorElement() const { |
| 903 return toHTMLElementOrDie( | 903 return toHTMLElementOrDie( |
| 904 userAgentShadowRoot()->getElementById(ShadowElementNames::innerEditor())); | 904 userAgentShadowRoot()->getElementById(ShadowElementNames::innerEditor())); |
| 905 } | 905 } |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 | 1165 |
| 1166 void TextControlElement::copyNonAttributePropertiesFromElement( | 1166 void TextControlElement::copyNonAttributePropertiesFromElement( |
| 1167 const Element& source) { | 1167 const Element& source) { |
| 1168 const TextControlElement& sourceElement = | 1168 const TextControlElement& sourceElement = |
| 1169 static_cast<const TextControlElement&>(source); | 1169 static_cast<const TextControlElement&>(source); |
| 1170 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; | 1170 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; |
| 1171 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); | 1171 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 } // namespace blink | 1174 } // namespace blink |
| OLD | NEW |