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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/HTMLBDIElement.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 28 matching lines...) Expand all
39 using namespace HTMLNames; 39 using namespace HTMLNames;
40 40
41 inline HTMLAreaElement::HTMLAreaElement(Document& document) 41 inline HTMLAreaElement::HTMLAreaElement(Document& document)
42 : HTMLAnchorElement(areaTag, document) 42 : HTMLAnchorElement(areaTag, document)
43 , m_lastSize(-1, -1) 43 , m_lastSize(-1, -1)
44 , m_shape(Unknown) 44 , m_shape(Unknown)
45 { 45 {
46 ScriptWrappable::init(this); 46 ScriptWrappable::init(this);
47 } 47 }
48 48
49 PassRefPtrWillBeRawPtr<HTMLAreaElement> HTMLAreaElement::create(Document& docume nt) 49 DEFINE_NODE_FACTORY(HTMLAreaElement)
50 {
51 return adoptRefWillBeRefCountedGarbageCollected(new HTMLAreaElement(document ));
52 }
53 50
54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 51 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
55 { 52 {
56 if (name == shapeAttr) { 53 if (name == shapeAttr) {
57 if (equalIgnoringCase(value, "default")) 54 if (equalIgnoringCase(value, "default"))
58 m_shape = Default; 55 m_shape = Default;
59 else if (equalIgnoringCase(value, "circle")) 56 else if (equalIgnoringCase(value, "circle"))
60 m_shape = Circle; 57 m_shape = Circle;
61 else if (equalIgnoringCase(value, "poly")) 58 else if (equalIgnoringCase(value, "poly"))
62 m_shape = Poly; 59 m_shape = Poly;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return; 230 return;
234 231
235 HTMLImageElement* imageElement = this->imageElement(); 232 HTMLImageElement* imageElement = this->imageElement();
236 if (!imageElement) 233 if (!imageElement)
237 return; 234 return;
238 235
239 imageElement->updateFocusAppearance(restorePreviousSelection); 236 imageElement->updateFocusAppearance(restorePreviousSelection);
240 } 237 }
241 238
242 } 239 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAreaElement.h ('k') | Source/core/html/HTMLBDIElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698