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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698