Changeset 223443 in webkit


Ignore:
Timestamp:
Oct 16, 2017 3:40:34 PM (7 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r223425.

This change broke internal builds.

Reverted changeset:

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

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r223442 r223443  
     12017-10-16  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r223425.
     4
     5        This change broke internal builds.
     6
     7        Reverted changeset:
     8
     9        "Remove unnecessary include from Document.h"
     10        https://bugs.webkit.org/show_bug.cgi?id=178247
     11        https://trac.webkit.org/changeset/223425
     12
    1132017-10-16  Maureen Daum  <mdaum@apple.com>
    214
  • trunk/Source/WebCore/dom/Document.cpp

    r223440 r223443  
    55465546}
    55475547
    5548 bool Document::hasTouchEventHandlers() const
    5549 {
    5550 #if ENABLE(TOUCH_EVENTS)
    5551     return m_touchEventTargets && m_touchEventTargets->size();
    5552 #else
    5553     return false;
    5554 #endif
    5555 }
    5556 
    5557 bool Document::touchEventTargetsContain(Node& node) const
    5558 {
    5559 #if ENABLE(TOUCH_EVENTS)
    5560     return m_touchEventTargets && m_touchEventTargets->contains(&node);
    5561 #else
    5562     UNUSED_PARAM(node);
    5563     return false;
    5564 #endif
    5565 }
    5566    
    55675548std::optional<RenderingContext> Document::getCSSCanvasContext(const String& type, const String& name, int width, int height)
    55685549{
  • trunk/Source/WebCore/dom/Document.h

    r223440 r223443  
    5454#include <wtf/Deque.h>
    5555#include <wtf/Forward.h>
     56#include <wtf/HashCountedSet.h>
    5657#include <wtf/HashSet.h>
    5758#include <wtf/WeakPtr.h>
     
    11721173    WEBCORE_EXPORT unsigned styleRecalcCount() const;
    11731174
    1174     bool hasTouchEventHandlers() const;
    1175     bool touchEventTargetsContain(Node&) const;
     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
    11761182
    11771183    void didAddTouchEventHandler(Node&);
Note: See TracChangeset for help on using the changeset viewer.