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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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/MediaKeyEvent.cpp ('k') | Source/core/html/TextMetrics.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) 2012 Motorola Mobility, Inc. All rights reserved. 2 * Copyright (c) 2012 Motorola Mobility, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 #include "core/html/HTMLObjectElement.h" 35 #include "core/html/HTMLObjectElement.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 using namespace HTMLNames; 39 using namespace HTMLNames;
40 40
41 RadioNodeList::RadioNodeList(ContainerNode& rootNode, const AtomicString& name, CollectionType type) 41 RadioNodeList::RadioNodeList(ContainerNode& rootNode, const AtomicString& name, CollectionType type)
42 : LiveNodeList(rootNode, type, InvalidateForFormControls, isHTMLFormElement( rootNode) ? NodeListIsRootedAtDocument : NodeListIsRootedAtNode) 42 : LiveNodeList(rootNode, type, InvalidateForFormControls, isHTMLFormElement( rootNode) ? NodeListIsRootedAtDocument : NodeListIsRootedAtNode)
43 , m_name(name) 43 , m_name(name)
44 { 44 {
45 ScriptWrappable::init(this);
46 } 45 }
47 46
48 RadioNodeList::~RadioNodeList() 47 RadioNodeList::~RadioNodeList()
49 { 48 {
50 #if !ENABLE(OILPAN) 49 #if !ENABLE(OILPAN)
51 ownerNode().nodeLists()->removeCache(this, type(), m_name); 50 ownerNode().nodeLists()->removeCache(this, type(), m_name);
52 #endif 51 #endif
53 } 52 }
54 53
55 static inline HTMLInputElement* toRadioButtonInputElement(Element& element) 54 static inline HTMLInputElement* toRadioButtonInputElement(Element& element)
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 if (!isHTMLObjectElement(element) && !element.isFormControlElement()) 122 if (!isHTMLObjectElement(element) && !element.isFormControlElement())
124 return false; 123 return false;
125 124
126 if (isHTMLInputElement(element) && toHTMLInputElement(element).isImageButton ()) 125 if (isHTMLInputElement(element) && toHTMLInputElement(element).isImageButton ())
127 return false; 126 return false;
128 127
129 return checkElementMatchesRadioNodeListFilter(element); 128 return checkElementMatchesRadioNodeListFilter(element);
130 } 129 }
131 130
132 } // namespace 131 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/MediaKeyEvent.cpp ('k') | Source/core/html/TextMetrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698