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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 name == noshadeAttr || name == sizeAttr) 45 name == noshadeAttr || name == sizeAttr)
46 return true; 46 return true;
47 return HTMLElement::IsPresentationAttribute(name); 47 return HTMLElement::IsPresentationAttribute(name);
48 } 48 }
49 49
50 void HTMLHRElement::CollectStyleForPresentationAttribute( 50 void HTMLHRElement::CollectStyleForPresentationAttribute(
51 const QualifiedName& name, 51 const QualifiedName& name,
52 const AtomicString& value, 52 const AtomicString& value,
53 MutableStylePropertySet* style) { 53 MutableStylePropertySet* style) {
54 if (name == alignAttr) { 54 if (name == alignAttr) {
55 if (EqualIgnoringCase(value, "left")) { 55 if (DeprecatedEqualIgnoringCase(value, "left")) {
56 AddPropertyToPresentationAttributeStyle( 56 AddPropertyToPresentationAttributeStyle(
57 style, CSSPropertyMarginLeft, 0, 57 style, CSSPropertyMarginLeft, 0,
58 CSSPrimitiveValue::UnitType::kPixels); 58 CSSPrimitiveValue::UnitType::kPixels);
59 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginRight, 59 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginRight,
60 CSSValueAuto); 60 CSSValueAuto);
61 } else if (EqualIgnoringCase(value, "right")) { 61 } else if (DeprecatedEqualIgnoringCase(value, "right")) {
62 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginLeft, 62 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginLeft,
63 CSSValueAuto); 63 CSSValueAuto);
64 AddPropertyToPresentationAttributeStyle( 64 AddPropertyToPresentationAttributeStyle(
65 style, CSSPropertyMarginRight, 0, 65 style, CSSPropertyMarginRight, 0,
66 CSSPrimitiveValue::UnitType::kPixels); 66 CSSPrimitiveValue::UnitType::kPixels);
67 } else { 67 } else {
68 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginLeft, 68 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginLeft,
69 CSSValueAuto); 69 CSSValueAuto);
70 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginRight, 70 AddPropertyToPresentationAttributeStyle(style, CSSPropertyMarginRight,
71 CSSValueAuto); 71 CSSValueAuto);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 toHTMLSelectElement(insertion_point)->HrInsertedOrRemoved(*this); 138 toHTMLSelectElement(insertion_point)->HrInsertedOrRemoved(*this);
139 } else if (isHTMLOptGroupElement(*insertion_point)) { 139 } else if (isHTMLOptGroupElement(*insertion_point)) {
140 Node* parent = insertion_point->parentNode(); 140 Node* parent = insertion_point->parentNode();
141 if (isHTMLSelectElement(parent)) 141 if (isHTMLSelectElement(parent))
142 toHTMLSelectElement(parent)->HrInsertedOrRemoved(*this); 142 toHTMLSelectElement(parent)->HrInsertedOrRemoved(*this);
143 } 143 }
144 HTMLElement::RemovedFrom(insertion_point); 144 HTMLElement::RemovedFrom(insertion_point);
145 } 145 }
146 146
147 } // namespace blink 147 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFrameSetElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698