| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 3444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3455 // consider walking to the first leaf node so that the partial-invalidation | 3455 // consider walking to the first leaf node so that the partial-invalidation |
| 3456 // benchmark mode still provides some value when running on generic pages. | 3456 // benchmark mode still provides some value when running on generic pages. |
| 3457 if (!target_element) | 3457 if (!target_element) |
| 3458 return; | 3458 return; |
| 3459 LayoutObject* target_object = target_element->GetLayoutObject(); | 3459 LayoutObject* target_object = target_element->GetLayoutObject(); |
| 3460 if (!target_object) | 3460 if (!target_object) |
| 3461 return; | 3461 return; |
| 3462 target_object->EnclosingLayer()->SetNeedsRepaint(); | 3462 target_object->EnclosingLayer()->SetNeedsRepaint(); |
| 3463 // TODO(wkorman): Consider revising the below to invalidate all | 3463 // TODO(wkorman): Consider revising the below to invalidate all |
| 3464 // non-compositing descendants as well. | 3464 // non-compositing descendants as well. |
| 3465 target_object->InvalidateDisplayItemClients(kPaintInvalidationForTesting); | 3465 target_object->InvalidateDisplayItemClients( |
| 3466 PaintInvalidationReason::kForTesting); |
| 3466 } | 3467 } |
| 3467 | 3468 |
| 3468 IntRect CompositedLayerMapping::PixelSnappedCompositedBounds() const { | 3469 IntRect CompositedLayerMapping::PixelSnappedCompositedBounds() const { |
| 3469 LayoutRect bounds = composited_bounds_; | 3470 LayoutRect bounds = composited_bounds_; |
| 3470 bounds.Move(owning_layer_.SubpixelAccumulation()); | 3471 bounds.Move(owning_layer_.SubpixelAccumulation()); |
| 3471 return PixelSnappedIntRect(bounds); | 3472 return PixelSnappedIntRect(bounds); |
| 3472 } | 3473 } |
| 3473 | 3474 |
| 3474 bool CompositedLayerMapping::InvalidateLayerIfNoPrecedingEntry( | 3475 bool CompositedLayerMapping::InvalidateLayerIfNoPrecedingEntry( |
| 3475 size_t index_to_clear) { | 3476 size_t index_to_clear) { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3621 } else if (graphics_layer == decoration_outline_layer_.get()) { | 3622 } else if (graphics_layer == decoration_outline_layer_.get()) { |
| 3622 name = "Decoration Layer"; | 3623 name = "Decoration Layer"; |
| 3623 } else { | 3624 } else { |
| 3624 NOTREACHED(); | 3625 NOTREACHED(); |
| 3625 } | 3626 } |
| 3626 | 3627 |
| 3627 return name; | 3628 return name; |
| 3628 } | 3629 } |
| 3629 | 3630 |
| 3630 } // namespace blink | 3631 } // namespace blink |
| OLD | NEW |