| 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 | 1000 |
| 1001 bool overflowClipRectOffsetChanged = oldScrollingLayerOffset != m_scrollingL
ayer->offsetFromLayoutObject(); | 1001 bool overflowClipRectOffsetChanged = oldScrollingLayerOffset != m_scrollingL
ayer->offsetFromLayoutObject(); |
| 1002 | 1002 |
| 1003 IntSize scrollSize(layoutBox->scrollWidth(), layoutBox->scrollHeight()); | 1003 IntSize scrollSize(layoutBox->scrollWidth(), layoutBox->scrollHeight()); |
| 1004 if (scrollSize != m_scrollingContentsLayer->size() || overflowClipRectOffset
Changed) | 1004 if (scrollSize != m_scrollingContentsLayer->size() || overflowClipRectOffset
Changed) |
| 1005 m_scrollingContentsLayer->setNeedsDisplay(); | 1005 m_scrollingContentsLayer->setNeedsDisplay(); |
| 1006 | 1006 |
| 1007 DoubleSize scrollingContentsOffset(overflowClipRect.location().x() - adjuste
dScrollOffset.width(), overflowClipRect.location().y() - adjustedScrollOffset.he
ight()); | 1007 DoubleSize scrollingContentsOffset(overflowClipRect.location().x() - adjuste
dScrollOffset.width(), overflowClipRect.location().y() - adjustedScrollOffset.he
ight()); |
| 1008 // The scroll offset change is compared using floating point so that fractio
nal scroll offset | 1008 // The scroll offset change is compared using floating point so that fractio
nal scroll offset |
| 1009 // change can be propagated to compositor. | 1009 // change can be propagated to compositor. |
| 1010 if (scrollingContentsOffset != m_scrollingContentsLayer->offsetDoubleFromLay
outObject() || scrollSize != m_scrollingContentsLayer->size()) { | 1010 if (scrollingContentsOffset != m_scrollingContentsOffset || scrollSize != m_
scrollingContentsLayer->size()) { |
| 1011 bool coordinatorHandlesOffset = compositor()->scrollingLayerDidChange(&m
_owningLayer); | 1011 bool coordinatorHandlesOffset = compositor()->scrollingLayerDidChange(&m
_owningLayer); |
| 1012 m_scrollingContentsLayer->setPosition(coordinatorHandlesOffset ? FloatPo
int() : FloatPoint(-toFloatSize(adjustedScrollOffset))); | 1012 m_scrollingContentsLayer->setPosition(coordinatorHandlesOffset ? FloatPo
int() : FloatPoint(-toFloatSize(adjustedScrollOffset))); |
| 1013 } | 1013 } |
| 1014 m_scrollingContentsOffset = scrollingContentsOffset; |
| 1014 | 1015 |
| 1015 m_scrollingContentsLayer->setSize(FloatSize(scrollSize)); | 1016 m_scrollingContentsLayer->setSize(FloatSize(scrollSize)); |
| 1016 // FIXME: The paint offset and the scroll offset should really be separate c
oncepts. | 1017 m_scrollingContentsLayer->setOffsetDoubleFromLayoutObject(toIntSize(overflow
ClipRect.location()), GraphicsLayer::DontSetNeedsDisplay); |
| 1017 m_scrollingContentsLayer->setOffsetDoubleFromLayoutObject(scrollingContentsO
ffset, GraphicsLayer::DontSetNeedsDisplay); | |
| 1018 | 1018 |
| 1019 if (m_foregroundLayer) { | 1019 if (m_foregroundLayer) { |
| 1020 if (m_foregroundLayer->size() != m_scrollingContentsLayer->size()) | 1020 if (m_foregroundLayer->size() != m_scrollingContentsLayer->size()) |
| 1021 m_foregroundLayer->setSize(m_scrollingContentsLayer->size()); | 1021 m_foregroundLayer->setSize(m_scrollingContentsLayer->size()); |
| 1022 m_foregroundLayer->setNeedsDisplay(); | 1022 m_foregroundLayer->setNeedsDisplay(); |
| 1023 m_foregroundLayer->setOffsetFromLayoutObject(m_scrollingContentsLayer->o
ffsetFromLayoutObject()); | 1023 m_foregroundLayer->setOffsetFromLayoutObject(m_scrollingContentsLayer->o
ffsetFromLayoutObject()); |
| 1024 } | 1024 } |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 void CompositedLayerMapping::updateChildClippingMaskLayerGeometry() | 1027 void CompositedLayerMapping::updateChildClippingMaskLayerGeometry() |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 enum ApplyToGraphicsLayersModeFlags { | 1411 enum ApplyToGraphicsLayersModeFlags { |
| 1412 ApplyToLayersAffectedByPreserve3D = (1 << 0), | 1412 ApplyToLayersAffectedByPreserve3D = (1 << 0), |
| 1413 ApplyToSquashingLayer = (1 << 1), | 1413 ApplyToSquashingLayer = (1 << 1), |
| 1414 ApplyToScrollbarLayers = (1 << 2), | 1414 ApplyToScrollbarLayers = (1 << 2), |
| 1415 ApplyToBackgroundLayer = (1 << 3), | 1415 ApplyToBackgroundLayer = (1 << 3), |
| 1416 ApplyToMaskLayers = (1 << 4), | 1416 ApplyToMaskLayers = (1 << 4), |
| 1417 ApplyToContentLayers = (1 << 5), | 1417 ApplyToContentLayers = (1 << 5), |
| 1418 ApplyToChildContainingLayers = (1 << 6), // layers between m_graphicsLayer a
nd children | 1418 ApplyToChildContainingLayers = (1 << 6), // layers between m_graphicsLayer a
nd children |
| 1419 ApplyToAllGraphicsLayers = (ApplyToSquashingLayer | ApplyToScrollbarLayers |
ApplyToBackgroundLayer | ApplyToMaskLayers | ApplyToLayersAffectedByPreserve3D
| ApplyToContentLayers) | 1419 ApplyToScrollingContentLayers = (1 << 7), |
| 1420 ApplyToAllGraphicsLayers = (ApplyToSquashingLayer | ApplyToScrollbarLayers |
ApplyToBackgroundLayer | ApplyToMaskLayers | ApplyToLayersAffectedByPreserve3D
| ApplyToContentLayers | ApplyToScrollingContentLayers) |
| 1420 }; | 1421 }; |
| 1421 typedef unsigned ApplyToGraphicsLayersMode; | 1422 typedef unsigned ApplyToGraphicsLayersMode; |
| 1422 | 1423 |
| 1423 template <typename Func> | 1424 template <typename Func> |
| 1424 static void ApplyToGraphicsLayers(const CompositedLayerMapping* mapping, const F
unc& f, ApplyToGraphicsLayersMode mode) | 1425 static void ApplyToGraphicsLayers(const CompositedLayerMapping* mapping, const F
unc& f, ApplyToGraphicsLayersMode mode) |
| 1425 { | 1426 { |
| 1426 ASSERT(mode); | 1427 ASSERT(mode); |
| 1427 | 1428 |
| 1428 if ((mode & ApplyToLayersAffectedByPreserve3D) && mapping->childTransformLay
er()) | 1429 if ((mode & ApplyToLayersAffectedByPreserve3D) && mapping->childTransformLay
er()) |
| 1429 f(mapping->childTransformLayer()); | 1430 f(mapping->childTransformLayer()); |
| 1430 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers)) && mapping->mainGraphicsLayer()) | 1431 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers)) && mapping->mainGraphicsLayer()) |
| 1431 f(mapping->mainGraphicsLayer()); | 1432 f(mapping->mainGraphicsLayer()); |
| 1432 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->clippingLayer()) | 1433 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->clippingLayer()) |
| 1433 f(mapping->clippingLayer()); | 1434 f(mapping->clippingLayer()); |
| 1434 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->scrollingLayer()) | 1435 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->scrollingLayer()) |
| 1435 f(mapping->scrollingLayer()); | 1436 f(mapping->scrollingLayer()); |
| 1436 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers) || (mode & ApplyToChildContainingLayers)) && mapping->scrollingContentsLaye
r()) | 1437 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers) || (mode & ApplyToChildContainingLayers) || (mode & ApplyToScrollingContent
Layers)) && mapping->scrollingContentsLayer()) |
| 1437 f(mapping->scrollingContentsLayer()); | 1438 f(mapping->scrollingContentsLayer()); |
| 1438 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers)) && mapping->foregroundLayer()) | 1439 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers) || (mode & ApplyToScrollingContentLayers)) && mapping->foregroundLayer()) |
| 1439 f(mapping->foregroundLayer()); | 1440 f(mapping->foregroundLayer()); |
| 1440 | 1441 |
| 1441 if ((mode & ApplyToChildContainingLayers) && mapping->childTransformLayer()) | 1442 if ((mode & ApplyToChildContainingLayers) && mapping->childTransformLayer()) |
| 1442 f(mapping->childTransformLayer()); | 1443 f(mapping->childTransformLayer()); |
| 1443 | 1444 |
| 1444 if ((mode & ApplyToSquashingLayer) && mapping->squashingLayer()) | 1445 if ((mode & ApplyToSquashingLayer) && mapping->squashingLayer()) |
| 1445 f(mapping->squashingLayer()); | 1446 f(mapping->squashingLayer()); |
| 1446 | 1447 |
| 1447 if (((mode & ApplyToMaskLayers) || (mode & ApplyToContentLayers)) && mapping
->maskLayer()) | 1448 if (((mode & ApplyToMaskLayers) || (mode & ApplyToContentLayers)) && mapping
->maskLayer()) |
| 1448 f(mapping->maskLayer()); | 1449 f(mapping->maskLayer()); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2102 // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); | 2103 // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 2103 | 2104 |
| 2104 SetContentsNeedsDisplayInRectFunctor functor = { | 2105 SetContentsNeedsDisplayInRectFunctor functor = { |
| 2105 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul
ation(), r.size())), | 2106 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul
ation(), r.size())), |
| 2106 invalidationReason, | 2107 invalidationReason, |
| 2107 client | 2108 client |
| 2108 }; | 2109 }; |
| 2109 ApplyToGraphicsLayers(this, functor, ApplyToContentLayers); | 2110 ApplyToGraphicsLayers(this, functor, ApplyToContentLayers); |
| 2110 } | 2111 } |
| 2111 | 2112 |
| 2113 void CompositedLayerMapping::setScrollingContentsNeedDisplayInRect(const LayoutR
ect& r, PaintInvalidationReason invalidationReason, const DisplayItemClient& cli
ent) |
| 2114 { |
| 2115 // TODO(wangxianzhu): Enable the following assert after paint invalidation f
or spv2 is ready. |
| 2116 // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 2117 |
| 2118 SetContentsNeedsDisplayInRectFunctor functor = { |
| 2119 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul
ation(), r.size())), |
| 2120 invalidationReason, |
| 2121 client |
| 2122 }; |
| 2123 ApplyToGraphicsLayers(this, functor, ApplyToScrollingContentLayers); |
| 2124 } |
| 2125 |
| 2126 void CompositedLayerMapping::scrollingDisplayItemClientWasInvalidated(const Disp
layItemClient& displayItemClient, PaintInvalidationReason paintInvalidationReaso
n) |
| 2127 { |
| 2128 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason](Gr
aphicsLayer* layer) { |
| 2129 layer->displayItemClientWasInvalidated(displayItemClient, paintInvalidat
ionReason); |
| 2130 }, ApplyToScrollingContentLayers); |
| 2131 } |
| 2132 |
| 2112 void CompositedLayerMapping::displayItemClientWasInvalidated(const DisplayItemCl
ient& displayItemClient, PaintInvalidationReason paintInvalidationReason) | 2133 void CompositedLayerMapping::displayItemClientWasInvalidated(const DisplayItemCl
ient& displayItemClient, PaintInvalidationReason paintInvalidationReason) |
| 2113 { | 2134 { |
| 2114 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason](Gr
aphicsLayer* layer) { | 2135 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason](Gr
aphicsLayer* layer) { |
| 2115 layer->displayItemClientWasInvalidated(displayItemClient, paintInvalidat
ionReason); | 2136 layer->displayItemClientWasInvalidated(displayItemClient, paintInvalidat
ionReason); |
| 2116 }, ApplyToContentLayers); | 2137 }, ApplyToContentLayers); |
| 2117 } | 2138 } |
| 2118 | 2139 |
| 2119 const GraphicsLayerPaintInfo* CompositedLayerMapping::containingSquashedLayer(co
nst LayoutObject* layoutObject, const Vector<GraphicsLayerPaintInfo>& layers, un
signed maxSquashedLayerIndex) | 2140 const GraphicsLayerPaintInfo* CompositedLayerMapping::containingSquashedLayer(co
nst LayoutObject* layoutObject, const Vector<GraphicsLayerPaintInfo>& layers, un
signed maxSquashedLayerIndex) |
| 2120 { | 2141 { |
| 2121 for (size_t i = 0; i < layers.size() && i < maxSquashedLayerIndex; ++i) { | 2142 for (size_t i = 0; i < layers.size() && i < maxSquashedLayerIndex; ++i) { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2233 return IntRect(); | 2254 return IntRect(); |
| 2234 // All squashed layers have the same clip and transform space, so we can
use the first squashed layer's | 2255 // All squashed layers have the same clip and transform space, so we can
use the first squashed layer's |
| 2235 // layoutObject to map the squashing layer's bounds into viewport space,
with offsetFromAnchorLayoutObject | 2256 // layoutObject to map the squashing layer's bounds into viewport space,
with offsetFromAnchorLayoutObject |
| 2236 // to translate squashing layer's bounds into the first squashed layer's
space. | 2257 // to translate squashing layer's bounds into the first squashed layer's
space. |
| 2237 anchorLayoutObject = m_squashedLayers[0].paintLayer->layoutObject(); | 2258 anchorLayoutObject = m_squashedLayers[0].paintLayer->layoutObject(); |
| 2238 offsetFromAnchorLayoutObject = m_squashedLayers[0].offsetFromLayoutObjec
t; | 2259 offsetFromAnchorLayoutObject = m_squashedLayers[0].offsetFromLayoutObjec
t; |
| 2239 } else { | 2260 } else { |
| 2240 ASSERT(graphicsLayer == m_graphicsLayer || graphicsLayer == m_scrollingC
ontentsLayer); | 2261 ASSERT(graphicsLayer == m_graphicsLayer || graphicsLayer == m_scrollingC
ontentsLayer); |
| 2241 anchorLayoutObject = m_owningLayer.layoutObject(); | 2262 anchorLayoutObject = m_owningLayer.layoutObject(); |
| 2242 offsetFromAnchorLayoutObject = graphicsLayer->offsetFromLayoutObject(); | 2263 offsetFromAnchorLayoutObject = graphicsLayer->offsetFromLayoutObject(); |
| 2264 adjustForCompositedScrolling(graphicsLayer, offsetFromAnchorLayoutObject
); |
| 2243 } | 2265 } |
| 2244 | 2266 |
| 2245 // Start with the bounds of the graphics layer in the space of the anchor La
youtObject. | 2267 // Start with the bounds of the graphics layer in the space of the anchor La
youtObject. |
| 2246 FloatRect graphicsLayerBoundsInObjectSpace(graphicsLayerBounds); | 2268 FloatRect graphicsLayerBoundsInObjectSpace(graphicsLayerBounds); |
| 2247 graphicsLayerBoundsInObjectSpace.move(offsetFromAnchorLayoutObject); | 2269 graphicsLayerBoundsInObjectSpace.move(offsetFromAnchorLayoutObject); |
| 2248 // The object space means including writing mode flip. | 2270 // The object space means including writing mode flip. |
| 2249 if (anchorLayoutObject->isBox()) | 2271 if (anchorLayoutObject->isBox()) |
| 2250 toLayoutBox(anchorLayoutObject)->flipForWritingMode(graphicsLayerBoundsI
nObjectSpace); | 2272 toLayoutBox(anchorLayoutObject)->flipForWritingMode(graphicsLayerBoundsI
nObjectSpace); |
| 2251 | 2273 |
| 2252 // Now map the bounds to its visible content rect in screen space, including
applying clips along the way. | 2274 // Now map the bounds to its visible content rect in screen space, including
applying clips along the way. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2333 LayoutSize CompositedLayerMapping::subpixelAccumulation() const | 2355 LayoutSize CompositedLayerMapping::subpixelAccumulation() const |
| 2334 { | 2356 { |
| 2335 return m_owningLayer.subpixelAccumulation(); | 2357 return m_owningLayer.subpixelAccumulation(); |
| 2336 } | 2358 } |
| 2337 | 2359 |
| 2338 bool CompositedLayerMapping::needsRepaint(const GraphicsLayer& graphicsLayer) co
nst | 2360 bool CompositedLayerMapping::needsRepaint(const GraphicsLayer& graphicsLayer) co
nst |
| 2339 { | 2361 { |
| 2340 return isScrollableAreaLayer(&graphicsLayer) ? true : m_owningLayer.needsRep
aint(); | 2362 return isScrollableAreaLayer(&graphicsLayer) ? true : m_owningLayer.needsRep
aint(); |
| 2341 } | 2363 } |
| 2342 | 2364 |
| 2365 void CompositedLayerMapping::adjustForCompositedScrolling(const GraphicsLayer* g
raphicsLayer, IntSize& offset) const |
| 2366 { |
| 2367 if (graphicsLayer == m_scrollingContentsLayer.get() || graphicsLayer == m_fo
regroundLayer.get()) { |
| 2368 DoubleSize adjustedScrollOffset = m_owningLayer.getScrollableArea()->adj
ustedScrollOffset(); |
| 2369 offset.expand(-adjustedScrollOffset.width(), -adjustedScrollOffset.heigh
t()); |
| 2370 } |
| 2371 } |
| 2372 |
| 2343 void CompositedLayerMapping::paintContents(const GraphicsLayer* graphicsLayer, G
raphicsContext& context, | 2373 void CompositedLayerMapping::paintContents(const GraphicsLayer* graphicsLayer, G
raphicsContext& context, |
| 2344 GraphicsLayerPaintingPhase graphicsLayerPaintingPhase, const IntRect& intere
stRect) const | 2374 GraphicsLayerPaintingPhase graphicsLayerPaintingPhase, const IntRect& intere
stRect) const |
| 2345 { | 2375 { |
| 2346 // https://code.google.com/p/chromium/issues/detail?id=343772 | 2376 // https://code.google.com/p/chromium/issues/detail?id=343772 |
| 2347 DisableCompositingQueryAsserts disabler; | 2377 DisableCompositingQueryAsserts disabler; |
| 2348 // Allow throttling to make sure no painting paths (e.g., | 2378 // Allow throttling to make sure no painting paths (e.g., |
| 2349 // ContentLayerDelegate::paintContents) try to paint throttled content. | 2379 // ContentLayerDelegate::paintContents) try to paint throttled content. |
| 2350 DocumentLifecycle::AllowThrottlingScope allowThrottling(m_owningLayer.layout
Object()->document().lifecycle()); | 2380 DocumentLifecycle::AllowThrottlingScope allowThrottling(m_owningLayer.layout
Object()->document().lifecycle()); |
| 2351 #if ENABLE(ASSERT) | 2381 #if ENABLE(ASSERT) |
| 2352 // FIXME: once the state machine is ready, this can be removed and we can re
fer to that instead. | 2382 // FIXME: once the state machine is ready, this can be removed and we can re
fer to that instead. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2379 || graphicsLayer == m_foregroundLayer.get() | 2409 || graphicsLayer == m_foregroundLayer.get() |
| 2380 || graphicsLayer == m_backgroundLayer.get() | 2410 || graphicsLayer == m_backgroundLayer.get() |
| 2381 || graphicsLayer == m_maskLayer.get() | 2411 || graphicsLayer == m_maskLayer.get() |
| 2382 || graphicsLayer == m_childClippingMaskLayer.get() | 2412 || graphicsLayer == m_childClippingMaskLayer.get() |
| 2383 || graphicsLayer == m_scrollingContentsLayer.get()) { | 2413 || graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2384 | 2414 |
| 2385 GraphicsLayerPaintInfo paintInfo; | 2415 GraphicsLayerPaintInfo paintInfo; |
| 2386 paintInfo.paintLayer = &m_owningLayer; | 2416 paintInfo.paintLayer = &m_owningLayer; |
| 2387 paintInfo.compositedBounds = compositedBounds(); | 2417 paintInfo.compositedBounds = compositedBounds(); |
| 2388 paintInfo.offsetFromLayoutObject = graphicsLayer->offsetFromLayoutObject
(); | 2418 paintInfo.offsetFromLayoutObject = graphicsLayer->offsetFromLayoutObject
(); |
| 2419 adjustForCompositedScrolling(graphicsLayer, paintInfo.offsetFromLayoutOb
ject); |
| 2389 | 2420 |
| 2390 // We have to use the same root as for hit testing, because both methods
can compute and cache clipRects. | 2421 // We have to use the same root as for hit testing, because both methods
can compute and cache clipRects. |
| 2391 doPaintTask(paintInfo, *graphicsLayer, paintLayerFlags, context, interes
tRect); | 2422 doPaintTask(paintInfo, *graphicsLayer, paintLayerFlags, context, interes
tRect); |
| 2392 } else if (graphicsLayer == m_squashingLayer.get()) { | 2423 } else if (graphicsLayer == m_squashingLayer.get()) { |
| 2393 for (size_t i = 0; i < m_squashedLayers.size(); ++i) | 2424 for (size_t i = 0; i < m_squashedLayers.size(); ++i) |
| 2394 doPaintTask(m_squashedLayers[i], *graphicsLayer, paintLayerFlags, co
ntext, interestRect); | 2425 doPaintTask(m_squashedLayers[i], *graphicsLayer, paintLayerFlags, co
ntext, interestRect); |
| 2395 } else if (isScrollableAreaLayer(graphicsLayer)) { | 2426 } else if (isScrollableAreaLayer(graphicsLayer)) { |
| 2396 paintScrollableArea(graphicsLayer, context, interestRect); | 2427 paintScrollableArea(graphicsLayer, context, interestRect); |
| 2397 } | 2428 } |
| 2398 InspectorInstrumentation::didPaint(m_owningLayer.layoutObject()->frame(), gr
aphicsLayer, context, LayoutRect(interestRect)); | 2429 InspectorInstrumentation::didPaint(m_owningLayer.layoutObject()->frame(), gr
aphicsLayer, context, LayoutRect(interestRect)); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2636 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2606 name = "Scrolling Contents Layer"; | 2637 name = "Scrolling Contents Layer"; |
| 2607 } else { | 2638 } else { |
| 2608 ASSERT_NOT_REACHED(); | 2639 ASSERT_NOT_REACHED(); |
| 2609 } | 2640 } |
| 2610 | 2641 |
| 2611 return name; | 2642 return name; |
| 2612 } | 2643 } |
| 2613 | 2644 |
| 2614 } // namespace blink | 2645 } // namespace blink |
| OLD | NEW |