OLD | NEW |
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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n
extSibling()) { | 440 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n
extSibling()) { |
441 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); | 441 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); |
442 } | 442 } |
443 } | 443 } |
444 | 444 |
445 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() | 445 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() |
446 { | 446 { |
447 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); | 447 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); |
448 } | 448 } |
449 | 449 |
450 void LayoutView::invalidatePaintForViewAndCompositedLayers() | 450 void LayoutView::invalidatePaintForViewAndCompositedLayers(bool changeDirectlyCo
mpositedImages) |
451 { | 451 { |
452 setShouldDoFullPaintInvalidation(); | 452 setShouldDoFullPaintInvalidation(); |
453 | 453 |
454 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. | 454 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. |
455 DisableCompositingQueryAsserts disabler; | 455 DisableCompositingQueryAsserts disabler; |
456 | 456 |
457 if (compositor()->inCompositingMode()) | 457 if (compositor()->inCompositingMode()) |
458 compositor()->fullyInvalidatePaint(); | 458 compositor()->fullyInvalidatePaint(changeDirectlyCompositedImages); |
459 } | 459 } |
460 | 460 |
461 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
estor, LayoutRect& rect, const PaintInvalidationState* invalidationState) const | 461 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
estor, LayoutRect& rect, const PaintInvalidationState* invalidationState) const |
462 { | 462 { |
463 mapToVisibleRectInAncestorSpace(ancestor, rect, IsNotFixedPosition, invalida
tionState); | 463 mapToVisibleRectInAncestorSpace(ancestor, rect, IsNotFixedPosition, invalida
tionState); |
464 } | 464 } |
465 | 465 |
466 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
estor, LayoutRect& rect, ViewportConstrainedPosition viewportConstraint, const P
aintInvalidationState* state) const | 466 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
estor, LayoutRect& rect, ViewportConstrainedPosition viewportConstraint, const P
aintInvalidationState* state) const |
467 { | 467 { |
468 if (document().printing()) | 468 if (document().printing()) |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 } | 991 } |
992 | 992 |
993 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) | 993 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) |
994 { | 994 { |
995 for (auto& media : m_mediaForPositionNotification) { | 995 for (auto& media : m_mediaForPositionNotification) { |
996 media->notifyPositionMayHaveChanged(visibleRect); | 996 media->notifyPositionMayHaveChanged(visibleRect); |
997 } | 997 } |
998 } | 998 } |
999 | 999 |
1000 } // namespace blink | 1000 } // namespace blink |
OLD | NEW |