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