| 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 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2422 } | 2422 } |
| 2423 | 2423 |
| 2424 void CompositedLayerMapping::notifyFirstImagePaint() | 2424 void CompositedLayerMapping::notifyFirstImagePaint() |
| 2425 { | 2425 { |
| 2426 if (PaintTiming* timing = m_owningLayer.paintTiming()) { | 2426 if (PaintTiming* timing = m_owningLayer.paintTiming()) { |
| 2427 if (timing->firstImagePaint() == 0) | 2427 if (timing->firstImagePaint() == 0) |
| 2428 timing->markFirstImagePaint(); | 2428 timing->markFirstImagePaint(); |
| 2429 } | 2429 } |
| 2430 } | 2430 } |
| 2431 | 2431 |
| 2432 void CompositedLayerMapping::notifyPaintInvalidation(const IntRect* visualRect,
int paintCount) |
| 2433 { |
| 2434 ASSERT(visualRect); |
| 2435 if (PaintTiming* timing = m_owningLayer.paintTiming()) |
| 2436 timing->markPaintInvalidation(visualRect, paintCount); |
| 2437 } |
| 2438 |
| 2432 IntRect CompositedLayerMapping::pixelSnappedCompositedBounds() const | 2439 IntRect CompositedLayerMapping::pixelSnappedCompositedBounds() const |
| 2433 { | 2440 { |
| 2434 LayoutRect bounds = m_compositedBounds; | 2441 LayoutRect bounds = m_compositedBounds; |
| 2435 bounds.move(m_owningLayer.subpixelAccumulation()); | 2442 bounds.move(m_owningLayer.subpixelAccumulation()); |
| 2436 return pixelSnappedIntRect(bounds); | 2443 return pixelSnappedIntRect(bounds); |
| 2437 } | 2444 } |
| 2438 | 2445 |
| 2439 bool CompositedLayerMapping::invalidateLayerIfNoPrecedingEntry(size_t indexToCle
ar) | 2446 bool CompositedLayerMapping::invalidateLayerIfNoPrecedingEntry(size_t indexToCle
ar) |
| 2440 { | 2447 { |
| 2441 PaintLayer* layerToRemove = m_squashedLayers[indexToClear].paintLayer; | 2448 PaintLayer* layerToRemove = m_squashedLayers[indexToClear].paintLayer; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2565 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2572 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
| 2566 name = "Scrolling Block Selection Layer"; | 2573 name = "Scrolling Block Selection Layer"; |
| 2567 } else { | 2574 } else { |
| 2568 ASSERT_NOT_REACHED(); | 2575 ASSERT_NOT_REACHED(); |
| 2569 } | 2576 } |
| 2570 | 2577 |
| 2571 return name; | 2578 return name; |
| 2572 } | 2579 } |
| 2573 | 2580 |
| 2574 } // namespace blink | 2581 } // namespace blink |
| OLD | NEW |