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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix git cl format mangling Created 5 years, 6 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Just schedule a full paint invalidation of our object. 433 // Just schedule a full paint invalidation of our object.
434 if (requiresPaintInvalidation) 434 if (requiresPaintInvalidation)
435 box().setShouldDoFullPaintInvalidation(); 435 box().setShouldDoFullPaintInvalidation();
436 436
437 // Schedule the scroll DOM event. 437 // Schedule the scroll DOM event.
438 if (box().node()) 438 if (box().node())
439 box().node()->document().enqueueScrollEventForNode(box().node()); 439 box().node()->document().enqueueScrollEventForNode(box().node());
440 440
441 if (AXObjectCache* cache = box().document().existingAXObjectCache()) 441 if (AXObjectCache* cache = box().document().existingAXObjectCache())
442 cache->handleScrollPositionChanged(&box()); 442 cache->handleScrollPositionChanged(&box());
443 box().view()->clearHitTestCache();
443 } 444 }
444 445
445 IntPoint DeprecatedPaintLayerScrollableArea::scrollPosition() const 446 IntPoint DeprecatedPaintLayerScrollableArea::scrollPosition() const
446 { 447 {
447 return IntPoint(flooredIntSize(m_scrollOffset)); 448 return IntPoint(flooredIntSize(m_scrollOffset));
448 } 449 }
449 450
450 DoublePoint DeprecatedPaintLayerScrollableArea::scrollPositionDouble() const 451 DoublePoint DeprecatedPaintLayerScrollableArea::scrollPositionDouble() const
451 { 452 {
452 return DoublePoint(m_scrollOffset); 453 return DoublePoint(m_scrollOffset);
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa yer* scrollChild) 1404 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa yer* scrollChild)
1404 { 1405 {
1405 // We only want to track the topmost scroll child for scrollable areas with 1406 // We only want to track the topmost scroll child for scrollable areas with
1406 // overlay scrollbars. 1407 // overlay scrollbars.
1407 if (!hasOverlayScrollbars()) 1408 if (!hasOverlayScrollbars())
1408 return; 1409 return;
1409 m_nextTopmostScrollChild = scrollChild; 1410 m_nextTopmostScrollChild = scrollChild;
1410 } 1411 }
1411 1412
1412 } // namespace blink 1413 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698