Changeset 223425 in webkit
- Timestamp:
- Oct 16, 2017 12:49:23 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r223424 r223425 1 2017-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 1 15 2017-10-16 Alex Christensen <achristensen@webkit.org> 2 16 -
trunk/Source/WebCore/dom/Document.cpp
r223415 r223425 5543 5543 } 5544 5544 5545 bool 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 5554 bool 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 5545 5564 std::optional<RenderingContext> Document::getCSSCanvasContext(const String& type, const String& name, int width, int height) 5546 5565 { -
trunk/Source/WebCore/dom/Document.h
r223195 r223425 54 54 #include <wtf/Deque.h> 55 55 #include <wtf/Forward.h> 56 #include <wtf/HashCountedSet.h>57 56 #include <wtf/HashSet.h> 58 57 #include <wtf/WeakPtr.h> … … 1173 1172 WEBCORE_EXPORT unsigned styleRecalcCount() const; 1174 1173 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; 1182 1176 1183 1177 void didAddTouchEventHandler(Node&);
Note: See TracChangeset
for help on using the changeset viewer.