Changeset 176504 in webkit
- Timestamp:
- Nov 22, 2014, 2:11:13 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
dom/Document.cpp (modified) (1 diff)
-
dom/Document.h (modified) (2 diffs)
-
html/HTMLFormControlElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r176503 r176504 1 2014-11-22 Andreas Kling <akling@apple.com> 2 3 Remove unused Document::ignoreAutofocus(). 4 <https://webkit.org/b/139002> 5 6 Reviewed by Antti Koivisto. 7 8 No one ever actually changes this flag, so let's remove it. 9 10 * dom/Document.cpp: 11 (WebCore::Document::Document): 12 * dom/Document.h: 13 (WebCore::Document::ignoreAutofocus): Deleted. 14 (WebCore::Document::setIgnoreAutofocus): Deleted. 15 * html/HTMLFormControlElement.cpp: 16 (WebCore::shouldAutofocus): 17 1 18 2014-11-22 Csaba Osztrogonác <ossy@webkit.org> 2 19 -
trunk/Source/WebCore/dom/Document.cpp
r176502 r176504 422 422 , m_printing(false) 423 423 , m_paginatedForScreen(false) 424 , m_ignoreAutofocus(false)425 424 , m_compatibilityMode(DocumentCompatibilityMode::NoQuirksMode) 426 425 , m_compatibilityModeLocked(false) -
trunk/Source/WebCore/dom/Document.h
r176502 r176504 753 753 const UserActionElementSet& userActionElements() const { return m_userActionElements; } 754 754 755 // The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough756 // for WebCore to ignore the autofocus attribute on any form controls757 bool ignoreAutofocus() const { return m_ignoreAutofocus; };758 void setIgnoreAutofocus(bool shouldIgnore = true) { m_ignoreAutofocus = shouldIgnore; };759 760 755 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false); 761 756 void hoveredElementDidDetach(Element*); … … 1422 1417 bool m_paginatedForScreen; 1423 1418 1424 bool m_ignoreAutofocus;1425 1426 1419 DocumentCompatibilityMode m_compatibilityMode; 1427 1420 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibilityMode virtual. -
trunk/Source/WebCore/html/HTMLFormControlElement.cpp
r176250 r176504 182 182 if (!element->inDocument() || !element->document().renderView()) 183 183 return false; 184 if (element->document().ignoreAutofocus())185 return false;186 184 if (element->document().isSandboxed(SandboxAutomaticFeatures)) { 187 185 // FIXME: This message should be moved off the console once a solution to https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
Note:
See TracChangeset
for help on using the changeset viewer.