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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLDivElement.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 22 matching lines...) Expand all
33 HTMLDivElement::HTMLDivElement(Document& document) 33 HTMLDivElement::HTMLDivElement(Document& document)
34 : HTMLElement(divTag, document) {} 34 : HTMLElement(divTag, document) {}
35 35
36 DEFINE_NODE_FACTORY(HTMLDivElement) 36 DEFINE_NODE_FACTORY(HTMLDivElement)
37 37
38 void HTMLDivElement::CollectStyleForPresentationAttribute( 38 void HTMLDivElement::CollectStyleForPresentationAttribute(
39 const QualifiedName& name, 39 const QualifiedName& name,
40 const AtomicString& value, 40 const AtomicString& value,
41 MutableStylePropertySet* style) { 41 MutableStylePropertySet* style) {
42 if (name == alignAttr) { 42 if (name == alignAttr) {
43 if (EqualIgnoringCase(value, "middle") || 43 if (DeprecatedEqualIgnoringCase(value, "middle") ||
44 EqualIgnoringCase(value, "center")) 44 DeprecatedEqualIgnoringCase(value, "center"))
45 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 45 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
46 CSSValueWebkitCenter); 46 CSSValueWebkitCenter);
47 else if (EqualIgnoringCase(value, "left")) 47 else if (DeprecatedEqualIgnoringCase(value, "left"))
48 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 48 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
49 CSSValueWebkitLeft); 49 CSSValueWebkitLeft);
50 else if (EqualIgnoringCase(value, "right")) 50 else if (DeprecatedEqualIgnoringCase(value, "right"))
51 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 51 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
52 CSSValueWebkitRight); 52 CSSValueWebkitRight);
53 else 53 else
54 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 54 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
55 value); 55 value);
56 } else { 56 } else {
57 HTMLElement::CollectStyleForPresentationAttribute(name, value, style); 57 HTMLElement::CollectStyleForPresentationAttribute(name, value, style);
58 } 58 }
59 } 59 }
60 60
61 } // namespace blink 61 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLButtonElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698