Changeset 223425 in webkit


Ignore:
Timestamp:
Oct 16, 2017 12:49:23 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Remove unnecessary include from Document.h
https://bugs.webkit.org/show_bug.cgi?id=178247

Reviewed by Darin Adler.

  • dom/Document.cpp:

(WebCore::Document::hasTouchEventHandlers const):
(WebCore::Document::touchEventTargetsContain const):

  • dom/Document.h:

(WebCore::Document::hasTouchEventHandlers const): Deleted.
(WebCore::Document::touchEventTargetsContain const): Deleted.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r223424 r223425  
     12017-10-16  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove unnecessary include from Document.h
     4        https://bugs.webkit.org/show_bug.cgi?id=178247
     5
     6        Reviewed by Darin Adler.
     7
     8        * dom/Document.cpp:
     9        (WebCore::Document::hasTouchEventHandlers const):
     10        (WebCore::Document::touchEventTargetsContain const):
     11        * dom/Document.h:
     12        (WebCore::Document::hasTouchEventHandlers const): Deleted.
     13        (WebCore::Document::touchEventTargetsContain const): Deleted.
     14
    1152017-10-16  Alex Christensen  <achristensen@webkit.org>
    216
  • trunk/Source/WebCore/dom/Document.cpp

    r223415 r223425  
    55435543}
    55445544
     5545bool Document::hasTouchEventHandlers() const
     5546{
     5547#if ENABLE(TOUCH_EVENTS)
     5548    return m_touchEventTargets && m_touchEventTargets->size();
     5549#else
     5550    return false;
     5551#endif
     5552}
     5553
     5554bool Document::touchEventTargetsContain(Node& node) const
     5555{
     5556#if ENABLE(TOUCH_EVENTS)
     5557    return m_touchEventTargets && m_touchEventTargets->contains(&node);
     5558#else
     5559    UNUSED_PARAM(node);
     5560    return false;
     5561#endif
     5562}
     5563   
    55455564std::optional<RenderingContext> Document::getCSSCanvasContext(const String& type, const String& name, int width, int height)
    55465565{
  • trunk/Source/WebCore/dom/Document.h

    r223195 r223425  
    5454#include <wtf/Deque.h>
    5555#include <wtf/Forward.h>
    56 #include <wtf/HashCountedSet.h>
    5756#include <wtf/HashSet.h>
    5857#include <wtf/WeakPtr.h>
     
    11731172    WEBCORE_EXPORT unsigned styleRecalcCount() const;
    11741173
    1175 #if ENABLE(TOUCH_EVENTS)
    1176     bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_touchEventTargets->size() : false; }
    1177     bool touchEventTargetsContain(Node& node) const { return m_touchEventTargets ? m_touchEventTargets->contains(&node) : false; }
    1178 #else
    1179     bool hasTouchEventHandlers() const { return false; }
    1180     bool touchEventTargetsContain(Node&) const { return false; }
    1181 #endif
     1174    bool hasTouchEventHandlers() const;
     1175    bool touchEventTargetsContain(Node&) const;
    11821176
    11831177    void didAddTouchEventHandler(Node&);
Note: See TracChangeset for help on using the changeset viewer.