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

Side by Side Diff: Source/core/html/HTMLObjectElement.h

Issue 93723003: Rename HTMLElement::form() to formOwner(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
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, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 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 24 matching lines...) Expand all
35 static PassRefPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, boo l createdByParser); 35 static PassRefPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, boo l createdByParser);
36 virtual ~HTMLObjectElement(); 36 virtual ~HTMLObjectElement();
37 37
38 const String& classId() const { return m_classId; } 38 const String& classId() const { return m_classId; }
39 39
40 bool containsJavaApplet() const; 40 bool containsJavaApplet() const;
41 41
42 virtual bool useFallbackContent() const OVERRIDE; 42 virtual bool useFallbackContent() const OVERRIDE;
43 virtual void renderFallbackContent() OVERRIDE; 43 virtual void renderFallbackContent() OVERRIDE;
44 44
45 // Implementations of FormAssociatedElement
46 HTMLFormElement* form() const { return FormAssociatedElement::form(); }
tkent 2013/12/10 08:31:28 Why do you remove it?
sof 2013/12/10 08:35:29 FormAssociatedElement::form() implements it direct
47
48 virtual bool isFormControlElement() const { return false; } 45 virtual bool isFormControlElement() const { return false; }
49 46
50 virtual bool isEnumeratable() const { return true; } 47 virtual bool isEnumeratable() const { return true; }
51 virtual bool isInteractiveContent() const OVERRIDE; 48 virtual bool isInteractiveContent() const OVERRIDE;
52 virtual bool appendFormData(FormDataList&, bool); 49 virtual bool appendFormData(FormDataList&, bool);
53 50
54 virtual bool isObjectElement() const OVERRIDE { return true; } 51 virtual bool isObjectElement() const OVERRIDE { return true; }
55 52
56 // Implementations of constraint validation API. 53 // Implementations of constraint validation API.
57 // Note that the object elements are always barred from constraint validatio n. 54 // Note that the object elements are always barred from constraint validatio n.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element); 128 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element);
132 // We need to assert after the cast because FormAssociatedElement doesn't 129 // We need to assert after the cast because FormAssociatedElement doesn't
133 // have hasTagName. 130 // have hasTagName.
134 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag)); 131 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag));
135 return objectElement; 132 return objectElement;
136 } 133 }
137 134
138 } 135 }
139 136
140 #endif 137 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698