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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Draw layered images with a recording GraphicContext Created 5 years 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n extSibling()) { 403 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n extSibling()) {
404 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); 404 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child);
405 } 405 }
406 } 406 }
407 407
408 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() 408 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants()
409 { 409 {
410 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); 410 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this);
411 } 411 }
412 412
413 void LayoutView::invalidatePaintForViewAndCompositedLayers() 413 void LayoutView::invalidatePaintForViewAndCompositedLayers(bool changeDirectlyCo mpositedImages)
414 { 414 {
415 setShouldDoFullPaintInvalidation(); 415 setShouldDoFullPaintInvalidation();
416 416
417 // The only way we know how to hit these ASSERTS below this point is via the Chromium OS login screen. 417 // The only way we know how to hit these ASSERTS below this point is via the Chromium OS login screen.
418 DisableCompositingQueryAsserts disabler; 418 DisableCompositingQueryAsserts disabler;
419 419
420 if (compositor()->inCompositingMode()) 420 if (compositor()->inCompositingMode())
421 compositor()->fullyInvalidatePaint(); 421 compositor()->fullyInvalidatePaint(changeDirectlyCompositedImages);
422 } 422 }
423 423
424 void LayoutView::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* inval idationState) const 424 void LayoutView::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* inval idationState) const
425 { 425 {
426 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, IsNotFix edPosition, invalidationState); 426 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, IsNotFix edPosition, invalidationState);
427 } 427 }
428 428
429 void LayoutView::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect& rect, ViewportConstrainedPosition viewpor tConstraint, const PaintInvalidationState* state) const 429 void LayoutView::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect& rect, ViewportConstrainedPosition viewpor tConstraint, const PaintInvalidationState* state) const
430 { 430 {
431 if (document().printing()) 431 if (document().printing())
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 } 965 }
966 966
967 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect ) 967 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect )
968 { 968 {
969 for (auto& media : m_mediaForPositionNotification) { 969 for (auto& media : m_mediaForPositionNotification) {
970 media->notifyPositionMayHaveChanged(visibleRect); 970 media->notifyPositionMayHaveChanged(visibleRect);
971 } 971 }
972 } 972 }
973 973
974 } // namespace blink 974 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698