Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2523903002: Document::updateHoverActiveState only cancel hover and active state when hitting native scrollbar (Closed)
Patch Set: bokan@ comment addressed Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "core/dom/custom/V0CustomElement.h" 52 #include "core/dom/custom/V0CustomElement.h"
53 #include "core/fetch/ClientHintsPreferences.h" 53 #include "core/fetch/ClientHintsPreferences.h"
54 #include "core/frame/DOMTimerCoordinator.h" 54 #include "core/frame/DOMTimerCoordinator.h"
55 #include "core/frame/HostsUsingFeatures.h" 55 #include "core/frame/HostsUsingFeatures.h"
56 #include "core/html/parser/ParserSynchronizationPolicy.h" 56 #include "core/html/parser/ParserSynchronizationPolicy.h"
57 #include "core/page/PageVisibilityState.h" 57 #include "core/page/PageVisibilityState.h"
58 #include "core/style/ComputedStyle.h" 58 #include "core/style/ComputedStyle.h"
59 #include "platform/Length.h" 59 #include "platform/Length.h"
60 #include "platform/Timer.h" 60 #include "platform/Timer.h"
61 #include "platform/WebTaskRunner.h" 61 #include "platform/WebTaskRunner.h"
62 #include "platform/scroll/Scrollbar.h"
bokan 2016/11/23 17:09:51 Nit: this can just be a forward declaration below
62 #include "platform/weborigin/KURL.h" 63 #include "platform/weborigin/KURL.h"
63 #include "platform/weborigin/ReferrerPolicy.h" 64 #include "platform/weborigin/ReferrerPolicy.h"
64 #include "public/platform/WebFocusType.h" 65 #include "public/platform/WebFocusType.h"
65 #include "public/platform/WebInsecureRequestPolicy.h" 66 #include "public/platform/WebInsecureRequestPolicy.h"
66 #include "wtf/HashSet.h" 67 #include "wtf/HashSet.h"
67 #include "wtf/PassRefPtr.h" 68 #include "wtf/PassRefPtr.h"
68 #include <memory> 69 #include <memory>
69 70
70 namespace blink { 71 namespace blink {
71 72
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 719
719 void setActiveHoverElement(Element*); 720 void setActiveHoverElement(Element*);
720 Element* activeHoverElement() const { return m_activeHoverElement.get(); } 721 Element* activeHoverElement() const { return m_activeHoverElement.get(); }
721 722
722 Node* hoverNode() const { return m_hoverNode.get(); } 723 Node* hoverNode() const { return m_hoverNode.get(); }
723 724
724 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); 725 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false);
725 void hoveredNodeDetached(Element&); 726 void hoveredNodeDetached(Element&);
726 void activeChainNodeDetached(Element&); 727 void activeChainNodeDetached(Element&);
727 728
728 void updateHoverActiveState(const HitTestRequest&, 729 void updateHoverActiveState(const HitTestRequest&, Element*, Scrollbar*);
729 Element*,
730 bool hitScrollbar);
731 730
732 // Updates for :target (CSS3 selector). 731 // Updates for :target (CSS3 selector).
733 void setCSSTarget(Element*); 732 void setCSSTarget(Element*);
734 Element* cssTarget() const { return m_cssTarget; } 733 Element* cssTarget() const { return m_cssTarget; }
735 734
736 void scheduleLayoutTreeUpdateIfNeeded(); 735 void scheduleLayoutTreeUpdateIfNeeded();
737 bool hasPendingForcedStyleRecalc() const; 736 bool hasPendingForcedStyleRecalc() const;
738 737
739 void registerNodeList(const LiveNodeListBase*); 738 void registerNodeList(const LiveNodeListBase*);
740 void unregisterNodeList(const LiveNodeListBase*); 739 void unregisterNodeList(const LiveNodeListBase*);
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1711 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1713 1712
1714 } // namespace blink 1713 } // namespace blink
1715 1714
1716 #ifndef NDEBUG 1715 #ifndef NDEBUG
1717 // Outside the WebCore namespace for ease of invocation from gdb. 1716 // Outside the WebCore namespace for ease of invocation from gdb.
1718 CORE_EXPORT void showLiveDocumentInstances(); 1717 CORE_EXPORT void showLiveDocumentInstances();
1719 #endif 1718 #endif
1720 1719
1721 #endif // Document_h 1720 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698