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 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 } else if (graphicsLayer == layerForScrollCorner()) { | 2207 } else if (graphicsLayer == layerForScrollCorner()) { |
2208 IntPoint scrollCornerAndResizerLocation = m_owningLayer.scrollableArea()
->scrollCornerAndResizerRect().location(); | 2208 IntPoint scrollCornerAndResizerLocation = m_owningLayer.scrollableArea()
->scrollCornerAndResizerRect().location(); |
2209 ScrollableAreaPainter(*m_owningLayer.scrollableArea()).paintScrollCorner
(&context, -scrollCornerAndResizerLocation, clip); | 2209 ScrollableAreaPainter(*m_owningLayer.scrollableArea()).paintScrollCorner
(&context, -scrollCornerAndResizerLocation, clip); |
2210 ScrollableAreaPainter(*m_owningLayer.scrollableArea()).paintResizer(&con
text, -scrollCornerAndResizerLocation, clip); | 2210 ScrollableAreaPainter(*m_owningLayer.scrollableArea()).paintResizer(&con
text, -scrollCornerAndResizerLocation, clip); |
2211 } | 2211 } |
2212 InspectorInstrumentation::didPaint(m_owningLayer.layoutObject(), graphicsLay
er, &context, LayoutRect(clip)); | 2212 InspectorInstrumentation::didPaint(m_owningLayer.layoutObject(), graphicsLay
er, &context, LayoutRect(clip)); |
2213 #if ENABLE(ASSERT) | 2213 #if ENABLE(ASSERT) |
2214 if (Page* page = layoutObject()->frame()->page()) | 2214 if (Page* page = layoutObject()->frame()->page()) |
2215 page->setIsPainting(false); | 2215 page->setIsPainting(false); |
2216 #endif | 2216 #endif |
| 2217 |
| 2218 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 2219 m_owningLayer.layoutObject()->clearRepaintFlagsRecursively(); |
2217 } | 2220 } |
2218 | 2221 |
2219 bool CompositedDeprecatedPaintLayerMapping::isTrackingPaintInvalidations() const | 2222 bool CompositedDeprecatedPaintLayerMapping::isTrackingPaintInvalidations() const |
2220 { | 2223 { |
2221 GraphicsLayerClient* client = compositor(); | 2224 GraphicsLayerClient* client = compositor(); |
2222 return client ? client->isTrackingPaintInvalidations() : false; | 2225 return client ? client->isTrackingPaintInvalidations() : false; |
2223 } | 2226 } |
2224 | 2227 |
2225 #if ENABLE(ASSERT) | 2228 #if ENABLE(ASSERT) |
2226 void CompositedDeprecatedPaintLayerMapping::verifyNotPainting() | 2229 void CompositedDeprecatedPaintLayerMapping::verifyNotPainting() |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2372 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
2370 name = "Scrolling Block Selection Layer"; | 2373 name = "Scrolling Block Selection Layer"; |
2371 } else { | 2374 } else { |
2372 ASSERT_NOT_REACHED(); | 2375 ASSERT_NOT_REACHED(); |
2373 } | 2376 } |
2374 | 2377 |
2375 return name; | 2378 return name; |
2376 } | 2379 } |
2377 | 2380 |
2378 } // namespace blink | 2381 } // namespace blink |
OLD | NEW |