 Chromium Code Reviews
 Chromium Code Reviews Issue 2536723007:
  Removed android scrolling fake mouse moves and device_supports_mouse  (Closed)
    
  
    Issue 2536723007:
  Removed android scrolling fake mouse moves and device_supports_mouse  (Closed) 
  | OLD | NEW | 
|---|---|
| 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, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 
| (...skipping 3812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3823 m_hoverNode = FlatTreeTraversal::parent(element); | 3823 m_hoverNode = FlatTreeTraversal::parent(element); | 
| 3824 while (m_hoverNode && !m_hoverNode->layoutObject()) | 3824 while (m_hoverNode && !m_hoverNode->layoutObject()) | 
| 3825 m_hoverNode = FlatTreeTraversal::parent(*m_hoverNode); | 3825 m_hoverNode = FlatTreeTraversal::parent(*m_hoverNode); | 
| 3826 | 3826 | 
| 3827 // If the mouse cursor is not visible, do not clear existing | 3827 // If the mouse cursor is not visible, do not clear existing | 
| 3828 // hover effects on the ancestors of |element| and do not invoke | 3828 // hover effects on the ancestors of |element| and do not invoke | 
| 3829 // new hover effects on any other element. | 3829 // new hover effects on any other element. | 
| 3830 if (!page()->isCursorVisible()) | 3830 if (!page()->isCursorVisible()) | 
| 3831 return; | 3831 return; | 
| 3832 | 3832 | 
| 3833 if (frame()) | 3833 if (frame() && !frame()->eventHandler().isMousePositionUnknown()) | 
| 
bokan
2016/12/02 18:04:05
Move this into scheduleHoverStateUpdate.
 
amaralp
2016/12/02 23:00:35
Done.
 | |
| 3834 frame()->eventHandler().scheduleHoverStateUpdate(); | 3834 frame()->eventHandler().scheduleHoverStateUpdate(); | 
| 3835 } | 3835 } | 
| 3836 | 3836 | 
| 3837 void Document::activeChainNodeDetached(Element& element) { | 3837 void Document::activeChainNodeDetached(Element& element) { | 
| 3838 if (!m_activeHoverElement) | 3838 if (!m_activeHoverElement) | 
| 3839 return; | 3839 return; | 
| 3840 | 3840 | 
| 3841 if (element != m_activeHoverElement) | 3841 if (element != m_activeHoverElement) | 
| 3842 return; | 3842 return; | 
| 3843 | 3843 | 
| (...skipping 2712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6556 } | 6556 } | 
| 6557 | 6557 | 
| 6558 void showLiveDocumentInstances() { | 6558 void showLiveDocumentInstances() { | 
| 6559 WeakDocumentSet& set = liveDocumentSet(); | 6559 WeakDocumentSet& set = liveDocumentSet(); | 
| 6560 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6560 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 
| 6561 for (Document* document : set) | 6561 for (Document* document : set) | 
| 6562 fprintf(stderr, "- Document %p URL: %s\n", document, | 6562 fprintf(stderr, "- Document %p URL: %s\n", document, | 
| 6563 document->url().getString().utf8().data()); | 6563 document->url().getString().utf8().data()); | 
| 6564 } | 6564 } | 
| 6565 #endif | 6565 #endif | 
| OLD | NEW |