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

Unified Diff: Source/core/html/RadioNodeList.cpp

Issue 180143003: Have LiveNodeListBase::ownerNode() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/LabelsNodeList.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/RadioNodeList.cpp
diff --git a/Source/core/html/RadioNodeList.cpp b/Source/core/html/RadioNodeList.cpp
index d2c9f29a06d0611801c4e385c3bab6ac136428a3..bbdce83edbfccb6961bf2d8897e26af55aabd512 100644
--- a/Source/core/html/RadioNodeList.cpp
+++ b/Source/core/html/RadioNodeList.cpp
@@ -47,7 +47,7 @@ RadioNodeList::RadioNodeList(ContainerNode* rootNode, const AtomicString& name,
RadioNodeList::~RadioNodeList()
{
- ownerNode()->nodeLists()->removeCache(this, m_onlyMatchImgElements ? RadioImgNodeListType : RadioNodeListType, m_name);
+ ownerNode().nodeLists()->removeCache(this, m_onlyMatchImgElements ? RadioImgNodeListType : RadioNodeListType, m_name);
}
static inline HTMLInputElement* toRadioButtonInputElement(Node* node)
@@ -93,7 +93,7 @@ bool RadioNodeList::checkElementMatchesRadioNodeListFilter(const Element& testEl
{
ASSERT(!m_onlyMatchImgElements);
ASSERT(testElement.hasTagName(objectTag) || testElement.isFormControlElement());
- if (ownerNode()->hasTagName(formTag)) {
+ if (ownerNode().hasTagName(formTag)) {
HTMLFormElement* formElement = toHTMLElement(testElement).formOwner();
if (!formElement || formElement != ownerNode())
return false;
« no previous file with comments | « Source/core/html/LabelsNodeList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698