| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 } | 459 } |
| 460 } | 460 } |
| 461 | 461 |
| 462 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() | 462 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() |
| 463 { | 463 { |
| 464 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); | 464 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void LayoutView::invalidatePaintForViewAndCompositedLayers() | 467 void LayoutView::invalidatePaintForViewAndCompositedLayers() |
| 468 { | 468 { |
| 469 setShouldDoFullPaintInvalidation(); | 469 setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
| 470 | 470 |
| 471 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. | 471 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. |
| 472 DisableCompositingQueryAsserts disabler; | 472 DisableCompositingQueryAsserts disabler; |
| 473 | 473 |
| 474 if (compositor()->inCompositingMode()) | 474 if (compositor()->inCompositingMode()) |
| 475 compositor()->fullyInvalidatePaint(); | 475 compositor()->fullyInvalidatePaint(); |
| 476 } | 476 } |
| 477 | 477 |
| 478 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
estor, LayoutRect& rect, const PaintInvalidationState* invalidationState) const | 478 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
estor, LayoutRect& rect, const PaintInvalidationState* invalidationState) const |
| 479 { | 479 { |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 | 1030 |
| 1031 ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize&
delta) | 1031 ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize&
delta) |
| 1032 { | 1032 { |
| 1033 if (!frameView()) | 1033 if (!frameView()) |
| 1034 return ScrollResult(); | 1034 return ScrollResult(); |
| 1035 | 1035 |
| 1036 return frame()->applyScrollDelta(granularity, delta, false); | 1036 return frame()->applyScrollDelta(granularity, delta, false); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 } // namespace blink | 1039 } // namespace blink |
| OLD | NEW |