| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 return; | 561 return; |
| 562 | 562 |
| 563 if (MayNeedPaintInvalidationSubtree()) | 563 if (MayNeedPaintInvalidationSubtree()) |
| 564 new_paint_invalidation_state | 564 new_paint_invalidation_state |
| 565 .SetForceSubtreeInvalidationCheckingWithinContainer(); | 565 .SetForceSubtreeInvalidationCheckingWithinContainer(); |
| 566 | 566 |
| 567 ObjectPaintInvalidator paint_invalidator(*this); | 567 ObjectPaintInvalidator paint_invalidator(*this); |
| 568 LayoutRect previous_visual_rect = VisualRect(); | 568 LayoutRect previous_visual_rect = VisualRect(); |
| 569 LayoutPoint previous_location = paint_invalidator.LocationInBacking(); | 569 LayoutPoint previous_location = paint_invalidator.LocationInBacking(); |
| 570 PaintInvalidationReason reason = | 570 PaintInvalidationReason reason = |
| 571 InvalidatePaintIfNeeded(new_paint_invalidation_state); | 571 InvalidatePaint(new_paint_invalidation_state); |
| 572 | 572 |
| 573 if (previous_location != paint_invalidator.LocationInBacking()) { | 573 if (previous_location != paint_invalidator.LocationInBacking()) { |
| 574 new_paint_invalidation_state | 574 new_paint_invalidation_state |
| 575 .SetForceSubtreeInvalidationCheckingWithinContainer(); | 575 .SetForceSubtreeInvalidationCheckingWithinContainer(); |
| 576 } | 576 } |
| 577 | 577 |
| 578 // TODO(wangxianzhu): This is a workaround for crbug.com/490725. We don't have | 578 // TODO(wangxianzhu): This is a workaround for crbug.com/490725. We don't have |
| 579 // enough saved information to do accurate check of clipping change. Will | 579 // enough saved information to do accurate check of clipping change. Will |
| 580 // remove when we remove rect-based paint invalidation. | 580 // remove when we remove rect-based paint invalidation. |
| 581 if (previous_visual_rect != VisualRect() && | 581 if (previous_visual_rect != VisualRect() && |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 if (root_element_style->HasBackground()) | 1481 if (root_element_style->HasBackground()) |
| 1482 return false; | 1482 return false; |
| 1483 | 1483 |
| 1484 if (GetNode() != GetDocument().FirstBodyElement()) | 1484 if (GetNode() != GetDocument().FirstBodyElement()) |
| 1485 return false; | 1485 return false; |
| 1486 | 1486 |
| 1487 return true; | 1487 return true; |
| 1488 } | 1488 } |
| 1489 | 1489 |
| 1490 } // namespace blink | 1490 } // namespace blink |
| OLD | NEW |