Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: third_party/WebKit/Source/core/html/TextControlElement.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 continue; 884 continue;
885 885
886 if (equalIgnoringCase(dirAttributeValue, "rtl") || 886 if (equalIgnoringCase(dirAttributeValue, "rtl") ||
887 equalIgnoringCase(dirAttributeValue, "ltr")) 887 equalIgnoringCase(dirAttributeValue, "ltr"))
888 return dirAttributeValue; 888 return dirAttributeValue;
889 889
890 if (equalIgnoringCase(dirAttributeValue, "auto")) { 890 if (equalIgnoringCase(dirAttributeValue, "auto")) {
891 bool isAuto; 891 bool isAuto;
892 TextDirection textDirection = 892 TextDirection textDirection =
893 element->directionalityIfhasDirAutoAttribute(isAuto); 893 element->directionalityIfhasDirAutoAttribute(isAuto);
894 return textDirection == RTL ? "rtl" : "ltr"; 894 return textDirection == TextDirection::Rtl ? "rtl" : "ltr";
895 } 895 }
896 } 896 }
897 897
898 return "ltr"; 898 return "ltr";
899 } 899 }
900 900
901 HTMLElement* TextControlElement::innerEditorElement() const { 901 HTMLElement* TextControlElement::innerEditorElement() const {
902 return toHTMLElementOrDie( 902 return toHTMLElementOrDie(
903 userAgentShadowRoot()->getElementById(ShadowElementNames::innerEditor())); 903 userAgentShadowRoot()->getElementById(ShadowElementNames::innerEditor()));
904 } 904 }
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 1164
1165 void TextControlElement::copyNonAttributePropertiesFromElement( 1165 void TextControlElement::copyNonAttributePropertiesFromElement(
1166 const Element& source) { 1166 const Element& source) {
1167 const TextControlElement& sourceElement = 1167 const TextControlElement& sourceElement =
1168 static_cast<const TextControlElement&>(source); 1168 static_cast<const TextControlElement&>(source);
1169 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; 1169 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit;
1170 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); 1170 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source);
1171 } 1171 }
1172 1172
1173 } // namespace blink 1173 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698