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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 months 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
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/dom/Element.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 { 1580 {
1581 if (!m_hoverNode) 1581 if (!m_hoverNode)
1582 return; 1582 return;
1583 1583
1584 if (node != m_hoverNode && (!m_hoverNode->isTextNode() || node != NodeRender ingTraversal::parent(m_hoverNode.get()))) 1584 if (node != m_hoverNode && (!m_hoverNode->isTextNode() || node != NodeRender ingTraversal::parent(m_hoverNode.get())))
1585 return; 1585 return;
1586 1586
1587 m_hoverNode = NodeRenderingTraversal::parent(node); 1587 m_hoverNode = NodeRenderingTraversal::parent(node);
1588 while (m_hoverNode && !m_hoverNode->renderer()) 1588 while (m_hoverNode && !m_hoverNode->renderer())
1589 m_hoverNode = NodeRenderingTraversal::parent(m_hoverNode.get()); 1589 m_hoverNode = NodeRenderingTraversal::parent(m_hoverNode.get());
1590
1591 // If the mouse cursor is not visible, do not clear existing
1592 // hover effects on the ancestors of |node| and do not invoke
1593 // new hover effects on any other element.
1594 if (!page()->isCursorVisible())
1595 return;
1596
1597 if (frame())
1598 frame()->eventHandler().scheduleHoverStateUpdate();
1599 } 1590 }
1600 1591
1601 void Document::activeChainNodeDetached(Node* node) 1592 void Document::activeChainNodeDetached(Node* node)
1602 { 1593 {
1603 if (!m_activeHoverElement) 1594 if (!m_activeHoverElement)
1604 return; 1595 return;
1605 1596
1606 if (node != m_activeHoverElement) 1597 if (node != m_activeHoverElement)
1607 return; 1598 return;
1608 1599
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 using namespace blink; 2395 using namespace blink;
2405 void showLiveDocumentInstances() 2396 void showLiveDocumentInstances()
2406 { 2397 {
2407 WeakDocumentSet& set = liveDocumentSet(); 2398 WeakDocumentSet& set = liveDocumentSet();
2408 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2399 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2409 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2400 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2410 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2401 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2411 } 2402 }
2412 } 2403 }
2413 #endif 2404 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698