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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTablePartElement.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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 UseCounter::Count( 60 UseCounter::Count(
61 GetDocument(), 61 GetDocument(),
62 UseCounter::kHTMLTableElementPresentationAttributeBackground); 62 UseCounter::kHTMLTableElementPresentationAttributeBackground);
63 CSSImageValue* image_value = 63 CSSImageValue* image_value =
64 CSSImageValue::Create(url, GetDocument().CompleteURL(url), 64 CSSImageValue::Create(url, GetDocument().CompleteURL(url),
65 Referrer(GetDocument().OutgoingReferrer(), 65 Referrer(GetDocument().OutgoingReferrer(),
66 GetDocument().GetReferrerPolicy())); 66 GetDocument().GetReferrerPolicy()));
67 style->SetProperty(CSSProperty(CSSPropertyBackgroundImage, *image_value)); 67 style->SetProperty(CSSProperty(CSSPropertyBackgroundImage, *image_value));
68 } 68 }
69 } else if (name == valignAttr) { 69 } else if (name == valignAttr) {
70 if (EqualIgnoringCase(value, "top")) 70 if (DeprecatedEqualIgnoringCase(value, "top"))
71 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, 71 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign,
72 CSSValueTop); 72 CSSValueTop);
73 else if (EqualIgnoringCase(value, "middle")) 73 else if (DeprecatedEqualIgnoringCase(value, "middle"))
74 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, 74 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign,
75 CSSValueMiddle); 75 CSSValueMiddle);
76 else if (EqualIgnoringCase(value, "bottom")) 76 else if (DeprecatedEqualIgnoringCase(value, "bottom"))
77 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, 77 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign,
78 CSSValueBottom); 78 CSSValueBottom);
79 else if (EqualIgnoringCase(value, "baseline")) 79 else if (DeprecatedEqualIgnoringCase(value, "baseline"))
80 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, 80 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign,
81 CSSValueBaseline); 81 CSSValueBaseline);
82 else 82 else
83 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, 83 AddPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign,
84 value); 84 value);
85 } else if (name == alignAttr) { 85 } else if (name == alignAttr) {
86 if (EqualIgnoringCase(value, "middle") || 86 if (DeprecatedEqualIgnoringCase(value, "middle") ||
87 EqualIgnoringCase(value, "center")) 87 DeprecatedEqualIgnoringCase(value, "center"))
88 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 88 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
89 CSSValueWebkitCenter); 89 CSSValueWebkitCenter);
90 else if (EqualIgnoringCase(value, "absmiddle")) 90 else if (DeprecatedEqualIgnoringCase(value, "absmiddle"))
91 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 91 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
92 CSSValueCenter); 92 CSSValueCenter);
93 else if (EqualIgnoringCase(value, "left")) 93 else if (DeprecatedEqualIgnoringCase(value, "left"))
94 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 94 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
95 CSSValueWebkitLeft); 95 CSSValueWebkitLeft);
96 else if (EqualIgnoringCase(value, "right")) 96 else if (DeprecatedEqualIgnoringCase(value, "right"))
97 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 97 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
98 CSSValueWebkitRight); 98 CSSValueWebkitRight);
99 else 99 else
100 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, 100 AddPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign,
101 value); 101 value);
102 } else if (name == heightAttr) { 102 } else if (name == heightAttr) {
103 if (!value.IsEmpty()) 103 if (!value.IsEmpty())
104 AddHTMLLengthToStyle(style, CSSPropertyHeight, value); 104 AddHTMLLengthToStyle(style, CSSPropertyHeight, value);
105 } else { 105 } else {
106 HTMLElement::CollectStyleForPresentationAttribute(name, value, style); 106 HTMLElement::CollectStyleForPresentationAttribute(name, value, style);
107 } 107 }
108 } 108 }
109 109
110 HTMLTableElement* HTMLTablePartElement::FindParentTable() const { 110 HTMLTableElement* HTMLTablePartElement::FindParentTable() const {
111 ContainerNode* parent = FlatTreeTraversal::Parent(*this); 111 ContainerNode* parent = FlatTreeTraversal::Parent(*this);
112 while (parent && !isHTMLTableElement(*parent)) 112 while (parent && !isHTMLTableElement(*parent))
113 parent = FlatTreeTraversal::Parent(*parent); 113 parent = FlatTreeTraversal::Parent(*parent);
114 return toHTMLTableElement(parent); 114 return toHTMLTableElement(parent);
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTableElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698