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

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

Issue 1624383002: Match <area shape> ASCII case-insensitively (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/AtomicString.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2009, 2011 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // definition. 60 // definition.
61 HTMLAreaElement::~HTMLAreaElement() 61 HTMLAreaElement::~HTMLAreaElement()
62 { 62 {
63 } 63 }
64 64
65 DEFINE_NODE_FACTORY(HTMLAreaElement) 65 DEFINE_NODE_FACTORY(HTMLAreaElement)
66 66
67 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& oldValue, const AtomicString& value) 67 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& oldValue, const AtomicString& value)
68 { 68 {
69 if (name == shapeAttr) { 69 if (name == shapeAttr) {
70 if (equalIgnoringCase(value, "default")) 70 if (equalIgnoringASCIICase(value, "default"))
71 m_shape = Default; 71 m_shape = Default;
72 else if (equalIgnoringCase(value, "circle")) 72 else if (equalIgnoringASCIICase(value, "circle"))
73 m_shape = Circle; 73 m_shape = Circle;
74 else if (equalIgnoringCase(value, "poly")) 74 else if (equalIgnoringASCIICase(value, "poly"))
75 m_shape = Poly; 75 m_shape = Poly;
76 else if (equalIgnoringCase(value, "rect")) 76 else if (equalIgnoringASCIICase(value, "rect"))
77 m_shape = Rect; 77 m_shape = Rect;
78 invalidateCachedRegion(); 78 invalidateCachedRegion();
79 } else if (name == coordsAttr) { 79 } else if (name == coordsAttr) {
80 m_coords = parseHTMLAreaElementCoords(value.string()); 80 m_coords = parseHTMLAreaElementCoords(value.string());
81 invalidateCachedRegion(); 81 invalidateCachedRegion();
82 } else if (name == altAttr || name == accesskeyAttr) { 82 } else if (name == altAttr || name == accesskeyAttr) {
83 // Do nothing. 83 // Do nothing.
84 } else { 84 } else {
85 HTMLAnchorElement::parseAttribute(name, oldValue, value); 85 HTMLAnchorElement::parseAttribute(name, oldValue, value);
86 } 86 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void HTMLAreaElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionBe havior) 230 void HTMLAreaElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionBe havior)
231 { 231 {
232 if (!isFocusable()) 232 if (!isFocusable())
233 return; 233 return;
234 234
235 if (HTMLImageElement* imageElement = this->imageElement()) 235 if (HTMLImageElement* imageElement = this->imageElement())
236 imageElement->updateFocusAppearance(selectionBehavior); 236 imageElement->updateFocusAppearance(selectionBehavior);
237 } 237 }
238 238
239 } // namespace blink 239 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/AtomicString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698