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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLAreaElement.h ('k') | Source/core/html/HTMLAudioElement.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 19 matching lines...) Expand all
30 #include "core/rendering/HitTestResult.h" 30 #include "core/rendering/HitTestResult.h"
31 #include "core/rendering/RenderImage.h" 31 #include "core/rendering/RenderImage.h"
32 #include "core/rendering/RenderView.h" 32 #include "core/rendering/RenderView.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(const QualifiedName& tagName, Document& document)
41 : HTMLAnchorElement(tagName, document) 41 : HTMLAnchorElement(tagName, 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)); 45 ASSERT(hasTagName(areaTag));
46 ScriptWrappable::init(this); 46 ScriptWrappable::init(this);
47 } 47 }
48 48
49 PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(const QualifiedName& tagName , Document* document) 49 PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(const QualifiedName& tagName , Document& document)
50 { 50 {
51 return adoptRef(new HTMLAreaElement(tagName, document)); 51 return adoptRef(new HTMLAreaElement(tagName, document));
52 } 52 }
53 53
54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
55 { 55 {
56 if (name == shapeAttr) { 56 if (name == shapeAttr) {
57 if (equalIgnoringCase(value, "default")) 57 if (equalIgnoringCase(value, "default"))
58 m_shape = Default; 58 m_shape = Default;
59 else if (equalIgnoringCase(value, "circle")) 59 else if (equalIgnoringCase(value, "circle"))
(...skipping 186 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? 246 // 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(); 247 return isLink();
248 } 248 }
249 249
250 String HTMLAreaElement::target() const 250 String HTMLAreaElement::target() const
251 { 251 {
252 return getAttribute(targetAttr); 252 return getAttribute(targetAttr);
253 } 253 }
254 254
255 } 255 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAreaElement.h ('k') | Source/core/html/HTMLAudioElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698