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

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

Issue 106423005: Only 'form associated' elements have a potential form owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use 'error' instead of 'click' events when testing form ownership 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
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLElement.cpp » ('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, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 void click(); 71 void click();
72 72
73 virtual void accessKeyAction(bool sendMouseEvents); 73 virtual void accessKeyAction(bool sendMouseEvents);
74 74
75 bool ieForbidsInsertHTML() const; 75 bool ieForbidsInsertHTML() const;
76 76
77 virtual bool rendererIsNeeded(const RenderStyle&); 77 virtual bool rendererIsNeeded(const RenderStyle&);
78 virtual RenderObject* createRenderer(RenderStyle*); 78 virtual RenderObject* createRenderer(RenderStyle*);
79 79
80 HTMLFormElement* formOwner() const { return virtualForm(); } 80 virtual HTMLFormElement* formOwner() const { return 0; }
81 81
82 HTMLFormElement* findFormAncestor() const; 82 HTMLFormElement* findFormAncestor() const;
83 83
84 bool hasDirectionAuto() const; 84 bool hasDirectionAuto() const;
85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const; 85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const;
86 86
87 virtual bool isHTMLUnknownElement() const { return false; } 87 virtual bool isHTMLUnknownElement() const { return false; }
88 88
89 virtual bool isLabelable() const { return false; } 89 virtual bool isLabelable() const { return false; }
90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content 90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content
(...skipping 15 matching lines...) Expand all
106 unsigned parseBorderWidthAttribute(const AtomicString&) const; 106 unsigned parseBorderWidthAttribute(const AtomicString&) const;
107 107
108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
109 void calculateAndAdjustDirectionality(); 109 void calculateAndAdjustDirectionality();
110 110
111 private: 111 private:
112 virtual String nodeName() const OVERRIDE FINAL; 112 virtual String nodeName() const OVERRIDE FINAL;
113 113
114 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS et*); 114 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS et*);
115 115
116 virtual HTMLFormElement* virtualForm() const;
117
118 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&); 116 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&);
119 117
120 void dirAttributeChanged(const AtomicString&); 118 void dirAttributeChanged(const AtomicString&);
121 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); 119 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child);
122 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in t childCountDelta); 120 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in t childCountDelta);
123 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; 121 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const;
124 122
125 TranslateAttributeMode translateAttributeMode() const; 123 TranslateAttributeMode translateAttributeMode() const;
126 124
127 const AtomicString& eventNameForAttributeName(const QualifiedName& attrName) const; 125 const AtomicString& eventNameForAttributeName(const QualifiedName& attrName) const;
128 126
129 void handleKeypressEvent(KeyboardEvent*); 127 void handleKeypressEvent(KeyboardEvent*);
130 bool supportsSpatialNavigationFocus() const; 128 bool supportsSpatialNavigationFocus() const;
131 }; 129 };
132 130
133 DEFINE_NODE_TYPE_CASTS(HTMLElement, isHTMLElement()); 131 DEFINE_NODE_TYPE_CASTS(HTMLElement, isHTMLElement());
134 132
135 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document , ConstructionType type = CreateHTMLElement) 133 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document , ConstructionType type = CreateHTMLElement)
136 : Element(tagName, &document, type) 134 : Element(tagName, &document, type)
137 { 135 {
138 ASSERT(!tagName.localName().isNull()); 136 ASSERT(!tagName.localName().isNull());
139 ScriptWrappable::init(this); 137 ScriptWrappable::init(this);
140 } 138 }
141 139
142 } // namespace WebCore 140 } // namespace WebCore
143 141
144 #endif // HTMLElement_h 142 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698