| 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 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2573 pictureBuilder.endRecording()->playback(context.canvas()); | 2573 pictureBuilder.endRecording()->playback(context.canvas()); |
| 2574 } | 2574 } |
| 2575 | 2575 |
| 2576 bool CompositedLayerMapping::isScrollableAreaLayer(const GraphicsLayer* graphics
Layer) const | 2576 bool CompositedLayerMapping::isScrollableAreaLayer(const GraphicsLayer* graphics
Layer) const |
| 2577 { | 2577 { |
| 2578 return graphicsLayer == layerForHorizontalScrollbar() | 2578 return graphicsLayer == layerForHorizontalScrollbar() |
| 2579 || graphicsLayer == layerForVerticalScrollbar() | 2579 || graphicsLayer == layerForVerticalScrollbar() |
| 2580 || graphicsLayer == layerForScrollCorner(); | 2580 || graphicsLayer == layerForScrollCorner(); |
| 2581 } | 2581 } |
| 2582 | 2582 |
| 2583 bool CompositedLayerMapping::isTrackingPaintInvalidations() const | 2583 bool CompositedLayerMapping::isTrackingRasterInvalidations() const |
| 2584 { | 2584 { |
| 2585 GraphicsLayerClient* client = compositor(); | 2585 GraphicsLayerClient* client = compositor(); |
| 2586 return client ? client->isTrackingPaintInvalidations() : false; | 2586 return client ? client->isTrackingRasterInvalidations() : false; |
| 2587 } | 2587 } |
| 2588 | 2588 |
| 2589 #if ENABLE(ASSERT) | 2589 #if ENABLE(ASSERT) |
| 2590 void CompositedLayerMapping::verifyNotPainting() | 2590 void CompositedLayerMapping::verifyNotPainting() |
| 2591 { | 2591 { |
| 2592 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()-
>isPainting()); | 2592 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()-
>isPainting()); |
| 2593 } | 2593 } |
| 2594 #endif | 2594 #endif |
| 2595 | 2595 |
| 2596 void CompositedLayerMapping::notifyPaint(bool isFirstPaint, bool textPainted, bo
ol imagePainted) | 2596 void CompositedLayerMapping::notifyPaint(bool isFirstPaint, bool textPainted, bo
ol imagePainted) |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2734 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2734 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2735 name = "Scrolling Contents Layer"; | 2735 name = "Scrolling Contents Layer"; |
| 2736 } else { | 2736 } else { |
| 2737 ASSERT_NOT_REACHED(); | 2737 ASSERT_NOT_REACHED(); |
| 2738 } | 2738 } |
| 2739 | 2739 |
| 2740 return name; | 2740 return name; |
| 2741 } | 2741 } |
| 2742 | 2742 |
| 2743 } // namespace blink | 2743 } // namespace blink |
| OLD | NEW |