⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176504 in webkit


Ignore:
Timestamp:
Nov 22, 2014, 2:11:13 AM (12 years ago)
Author:
akling@apple.com
Message:

Remove unused Document::ignoreAutofocus().
<https://webkit.org/b/139002>

Reviewed by Antti Koivisto.

No one ever actually changes this flag, so let's remove it.

  • dom/Document.cpp:

(WebCore::Document::Document):

  • dom/Document.h:

(WebCore::Document::ignoreAutofocus): Deleted.
(WebCore::Document::setIgnoreAutofocus): Deleted.

  • html/HTMLFormControlElement.cpp:

(WebCore::shouldAutofocus):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176503 r176504  
     12014-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
    1182014-11-22  Csaba Osztrogonác  <ossy@webkit.org>
    219
  • trunk/Source/WebCore/dom/Document.cpp

    r176502 r176504  
    422422    , m_printing(false)
    423423    , m_paginatedForScreen(false)
    424     , m_ignoreAutofocus(false)
    425424    , m_compatibilityMode(DocumentCompatibilityMode::NoQuirksMode)
    426425    , m_compatibilityModeLocked(false)
  • trunk/Source/WebCore/dom/Document.h

    r176502 r176504  
    753753    const UserActionElementSet& userActionElements() const { return m_userActionElements; }
    754754
    755     // The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough
    756     // for WebCore to ignore the autofocus attribute on any form controls
    757     bool ignoreAutofocus() const { return m_ignoreAutofocus; };
    758     void setIgnoreAutofocus(bool shouldIgnore = true) { m_ignoreAutofocus = shouldIgnore; };
    759 
    760755    void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false);
    761756    void hoveredElementDidDetach(Element*);
     
    14221417    bool m_paginatedForScreen;
    14231418
    1424     bool m_ignoreAutofocus;
    1425 
    14261419    DocumentCompatibilityMode m_compatibilityMode;
    14271420    bool m_compatibilityModeLocked; // This is cheaper than making setCompatibilityMode virtual.
  • trunk/Source/WebCore/html/HTMLFormControlElement.cpp

    r176250 r176504  
    182182    if (!element->inDocument() || !element->document().renderView())
    183183        return false;
    184     if (element->document().ignoreAutofocus())
    185         return false;
    186184    if (element->document().isSandboxed(SandboxAutomaticFeatures)) {
    187185        // 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.