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

Side by Side Diff: Source/core/html/HTMLOptGroupElement.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/HTMLOptGroupElement.h ('k') | Source/core/html/HTMLParagraphElement.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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 24 matching lines...) Expand all
35 35
36 using namespace HTMLNames; 36 using namespace HTMLNames;
37 37
38 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) 38 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document)
39 : HTMLElement(optgroupTag, document) 39 : HTMLElement(optgroupTag, document)
40 { 40 {
41 setHasCustomStyleCallbacks(); 41 setHasCustomStyleCallbacks();
42 ScriptWrappable::init(this); 42 ScriptWrappable::init(this);
43 } 43 }
44 44
45 PassRefPtrWillBeRawPtr<HTMLOptGroupElement> HTMLOptGroupElement::create(Document & document) 45 DEFINE_NODE_FACTORY(HTMLOptGroupElement)
46 {
47 return adoptRefWillBeRefCountedGarbageCollected(new HTMLOptGroupElement(docu ment));
48 }
49 46
50 bool HTMLOptGroupElement::isDisabledFormControl() const 47 bool HTMLOptGroupElement::isDisabledFormControl() const
51 { 48 {
52 return fastHasAttribute(disabledAttr); 49 return fastHasAttribute(disabledAttr);
53 } 50 }
54 51
55 bool HTMLOptGroupElement::rendererIsFocusable() const 52 bool HTMLOptGroupElement::rendererIsFocusable() const
56 { 53 {
57 // Optgroup elements do not have a renderer so we check the renderStyle inst ead. 54 // Optgroup elements do not have a renderer so we check the renderStyle inst ead.
58 return renderStyle() && renderStyle()->display() != NONE; 55 return renderStyle() && renderStyle()->display() != NONE;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 select->accessKeyAction(false); 137 select->accessKeyAction(false);
141 } 138 }
142 139
143 bool HTMLOptGroupElement::isDisplayNone() const 140 bool HTMLOptGroupElement::isDisplayNone() const
144 { 141 {
145 RenderStyle* style = nonRendererStyle(); 142 RenderStyle* style = nonRendererStyle();
146 return style && style->display() == NONE; 143 return style && style->display() == NONE;
147 } 144 }
148 145
149 } // namespace 146 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptGroupElement.h ('k') | Source/core/html/HTMLParagraphElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698