Changeset 223443 in webkit
- Timestamp:
- Oct 16, 2017 3:40:34 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r223442 r223443 1 2017-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 1 13 2017-10-16 Maureen Daum <mdaum@apple.com> 2 14 -
trunk/Source/WebCore/dom/Document.cpp
r223440 r223443 5546 5546 } 5547 5547 5548 bool Document::hasTouchEventHandlers() const5549 {5550 #if ENABLE(TOUCH_EVENTS)5551 return m_touchEventTargets && m_touchEventTargets->size();5552 #else5553 return false;5554 #endif5555 }5556 5557 bool Document::touchEventTargetsContain(Node& node) const5558 {5559 #if ENABLE(TOUCH_EVENTS)5560 return m_touchEventTargets && m_touchEventTargets->contains(&node);5561 #else5562 UNUSED_PARAM(node);5563 return false;5564 #endif5565 }5566 5567 5548 std::optional<RenderingContext> Document::getCSSCanvasContext(const String& type, const String& name, int width, int height) 5568 5549 { -
trunk/Source/WebCore/dom/Document.h
r223440 r223443 54 54 #include <wtf/Deque.h> 55 55 #include <wtf/Forward.h> 56 #include <wtf/HashCountedSet.h> 56 57 #include <wtf/HashSet.h> 57 58 #include <wtf/WeakPtr.h> … … 1172 1173 WEBCORE_EXPORT unsigned styleRecalcCount() const; 1173 1174 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 1176 1182 1177 1183 void didAddTouchEventHandler(Node&);
Note: See TracChangeset
for help on using the changeset viewer.