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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2797173002: Document::hoverNode() is always an Element. (Closed)
Patch Set: Documentation hovered node -> hovered element. Created 3 years, 8 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
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 } 1798 }
1799 1799
1800 if (ElementShadow* shadow = data->shadow()) 1800 if (ElementShadow* shadow = data->shadow())
1801 shadow->detach(context); 1801 shadow->detach(context);
1802 } 1802 }
1803 1803
1804 ContainerNode::detachLayoutTree(context); 1804 ContainerNode::detachLayoutTree(context);
1805 1805
1806 if (!context.performingReattach && isUserActionElement()) { 1806 if (!context.performingReattach && isUserActionElement()) {
1807 if (isHovered()) 1807 if (isHovered())
1808 document().hoveredNodeDetached(*this); 1808 document().hoveredElementDetached(*this);
1809 if (inActiveChain()) 1809 if (inActiveChain())
1810 document().activeChainNodeDetached(*this); 1810 document().activeChainNodeDetached(*this);
1811 document().userActionElements().didDetach(*this); 1811 document().userActionElements().didDetach(*this);
1812 } 1812 }
1813 1813
1814 if (context.clearInvalidation) 1814 if (context.clearInvalidation)
1815 document().styleEngine().styleInvalidator().clearInvalidation(*this); 1815 document().styleEngine().styleInvalidator().clearInvalidation(*this);
1816 1816
1817 setNeedsResizeObserverUpdate(); 1817 setNeedsResizeObserverUpdate();
1818 1818
(...skipping 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after
4289 } 4289 }
4290 4290
4291 DEFINE_TRACE_WRAPPERS(Element) { 4291 DEFINE_TRACE_WRAPPERS(Element) {
4292 if (hasRareData()) { 4292 if (hasRareData()) {
4293 visitor->traceWrappers(elementRareData()); 4293 visitor->traceWrappers(elementRareData());
4294 } 4294 }
4295 ContainerNode::traceWrappers(visitor); 4295 ContainerNode::traceWrappers(visitor);
4296 } 4296 }
4297 4297
4298 } // namespace blink 4298 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698