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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@gmail.com> 10 * Christian Biesinger <cbiesinger@gmail.com>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 frameView->updateDocumentAnnotatedRegions(); 392 frameView->updateDocumentAnnotatedRegions();
393 frameView->setNeedsUpdateWidgetGeometries(); 393 frameView->setNeedsUpdateWidgetGeometries();
394 updateCompositingLayersAfterScroll(); 394 updateCompositingLayersAfterScroll();
395 } 395 }
396 396
397 const LayoutBoxModelObject& paintInvalidationContainer = 397 const LayoutBoxModelObject& paintInvalidationContainer =
398 box().containerForPaintInvalidation(); 398 box().containerForPaintInvalidation();
399 // The caret rect needs to be invalidated after scrolling 399 // The caret rect needs to be invalidated after scrolling
400 frame->selection().setCaretRectNeedsUpdate(); 400 frame->selection().setCaretRectNeedsUpdate();
401 401
402 FloatQuad quadForFakeMouseMoveEvent = FloatQuad( 402 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(FloatRect(
403 FloatRect(layer() 403 layer()->layoutObject()->previousVisualRectIncludingCompositedScrolling(
404 ->layoutObject() 404 paintInvalidationContainer)));
405 ->previousPaintInvalidationRectIncludingCompositedScrolling(
406 paintInvalidationContainer)));
407 405
408 quadForFakeMouseMoveEvent = 406 quadForFakeMouseMoveEvent =
409 paintInvalidationContainer.localToAbsoluteQuad(quadForFakeMouseMoveEvent); 407 paintInvalidationContainer.localToAbsoluteQuad(quadForFakeMouseMoveEvent);
410 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad( 408 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(
411 quadForFakeMouseMoveEvent); 409 quadForFakeMouseMoveEvent);
412 410
413 Page* page = frame->page(); 411 Page* page = frame->page();
414 if (page) 412 if (page)
415 page->chromeClient().clearToolTip(*frame); 413 page->chromeClient().clearToolTip(*frame);
416 414
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 1961
1964 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: 1962 void PaintLayerScrollableArea::DelayScrollOffsetClampScope::
1965 clampScrollableAreas() { 1963 clampScrollableAreas() {
1966 for (auto& scrollableArea : *s_needsClamp) 1964 for (auto& scrollableArea : *s_needsClamp)
1967 scrollableArea->clampScrollOffsetsAfterLayout(); 1965 scrollableArea->clampScrollOffsetsAfterLayout();
1968 delete s_needsClamp; 1966 delete s_needsClamp;
1969 s_needsClamp = nullptr; 1967 s_needsClamp = nullptr;
1970 } 1968 }
1971 1969
1972 } // namespace blink 1970 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698