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

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

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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 | Annotate | Revision Log
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 19 matching lines...) Expand all
30 #include "core/rendering/RenderImage.h" 30 #include "core/rendering/RenderImage.h"
31 #include "core/rendering/RenderView.h" 31 #include "core/rendering/RenderView.h"
32 #include "platform/transforms/AffineTransform.h" 32 #include "platform/transforms/AffineTransform.h"
33 33
34 using namespace std; 34 using namespace std;
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 using namespace HTMLNames; 38 using namespace HTMLNames;
39 39
40 inline HTMLAreaElement::HTMLAreaElement(const QualifiedName& tagName, Document& document) 40 inline HTMLAreaElement::HTMLAreaElement(Document& document)
41 : HTMLAnchorElement(tagName, document) 41 : HTMLAnchorElement(areaTag, document)
42 , m_lastSize(-1, -1) 42 , m_lastSize(-1, -1)
43 , m_shape(Unknown) 43 , m_shape(Unknown)
44 { 44 {
45 ASSERT(hasTagName(areaTag));
46 ScriptWrappable::init(this); 45 ScriptWrappable::init(this);
47 } 46 }
48 47
49 PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(const QualifiedName& tagName , Document& document) 48 PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(Document& document)
50 { 49 {
51 return adoptRef(new HTMLAreaElement(tagName, document)); 50 return adoptRef(new HTMLAreaElement(document));
52 } 51 }
53 52
54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 53 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
55 { 54 {
56 if (name == shapeAttr) { 55 if (name == shapeAttr) {
57 if (equalIgnoringCase(value, "default")) 56 if (equalIgnoringCase(value, "default"))
58 m_shape = Default; 57 m_shape = Default;
59 else if (equalIgnoringCase(value, "circle")) 58 else if (equalIgnoringCase(value, "circle"))
60 m_shape = Circle; 59 m_shape = Circle;
61 else if (equalIgnoringCase(value, "poly")) 60 else if (equalIgnoringCase(value, "poly"))
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // FIXME: This means that an AREA that is not a link cannot be made focusabl e through contenteditable or tabindex. Is it correct? 245 // FIXME: This means that an AREA that is not a link cannot be made focusabl e through contenteditable or tabindex. Is it correct?
247 return isLink(); 246 return isLink();
248 } 247 }
249 248
250 String HTMLAreaElement::target() const 249 String HTMLAreaElement::target() const
251 { 250 {
252 return getAttribute(targetAttr); 251 return getAttribute(targetAttr);
253 } 252 }
254 253
255 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698