| 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_scrollingContentsOffset || scrollSize != m_
scrollingContentsLayer->size()) { | 1010 if (scrollingContentsOffset != m_scrollingContentsLayer->offsetDoubleFromLay
outObject() || 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; | |
| 1015 | 1014 |
| 1016 m_scrollingContentsLayer->setSize(FloatSize(scrollSize)); | 1015 m_scrollingContentsLayer->setSize(FloatSize(scrollSize)); |
| 1017 m_scrollingContentsLayer->setOffsetDoubleFromLayoutObject(toIntSize(overflow
ClipRect.location()), GraphicsLayer::DontSetNeedsDisplay); | 1016 // FIXME: The paint offset and the scroll offset should really be separate c
oncepts. |
| 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 ApplyToScrollingContentLayers = (1 << 7), | 1419 ApplyToAllGraphicsLayers = (ApplyToSquashingLayer | ApplyToScrollbarLayers |
ApplyToBackgroundLayer | ApplyToMaskLayers | ApplyToLayersAffectedByPreserve3D
| ApplyToContentLayers) |
| 1420 ApplyToAllGraphicsLayers = (ApplyToSquashingLayer | ApplyToScrollbarLayers |
ApplyToBackgroundLayer | ApplyToMaskLayers | ApplyToLayersAffectedByPreserve3D
| ApplyToContentLayers | ApplyToScrollingContentLayers) | |
| 1421 }; | 1420 }; |
| 1422 typedef unsigned ApplyToGraphicsLayersMode; | 1421 typedef unsigned ApplyToGraphicsLayersMode; |
| 1423 | 1422 |
| 1424 template <typename Func> | 1423 template <typename Func> |
| 1425 static void ApplyToGraphicsLayers(const CompositedLayerMapping* mapping, const F
unc& f, ApplyToGraphicsLayersMode mode) | 1424 static void ApplyToGraphicsLayers(const CompositedLayerMapping* mapping, const F
unc& f, ApplyToGraphicsLayersMode mode) |
| 1426 { | 1425 { |
| 1427 ASSERT(mode); | 1426 ASSERT(mode); |
| 1428 | 1427 |
| 1429 if ((mode & ApplyToLayersAffectedByPreserve3D) && mapping->childTransformLay
er()) | 1428 if ((mode & ApplyToLayersAffectedByPreserve3D) && mapping->childTransformLay
er()) |
| 1430 f(mapping->childTransformLayer()); | 1429 f(mapping->childTransformLayer()); |
| 1431 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers)) && mapping->mainGraphicsLayer()) | 1430 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers)) && mapping->mainGraphicsLayer()) |
| 1432 f(mapping->mainGraphicsLayer()); | 1431 f(mapping->mainGraphicsLayer()); |
| 1433 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->clippingLayer()) | 1432 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->clippingLayer()) |
| 1434 f(mapping->clippingLayer()); | 1433 f(mapping->clippingLayer()); |
| 1435 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->scrollingLayer()) | 1434 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToChildConta
iningLayers)) && mapping->scrollingLayer()) |
| 1436 f(mapping->scrollingLayer()); | 1435 f(mapping->scrollingLayer()); |
| 1437 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers) || (mode & ApplyToChildContainingLayers) || (mode & ApplyToScrollingContent
Layers)) && mapping->scrollingContentsLayer()) | 1436 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers) || (mode & ApplyToChildContainingLayers)) && mapping->scrollingContentsLaye
r()) |
| 1438 f(mapping->scrollingContentsLayer()); | 1437 f(mapping->scrollingContentsLayer()); |
| 1439 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers) || (mode & ApplyToScrollingContentLayers)) && mapping->foregroundLayer()) | 1438 if (((mode & ApplyToLayersAffectedByPreserve3D) || (mode & ApplyToContentLay
ers)) && mapping->foregroundLayer()) |
| 1440 f(mapping->foregroundLayer()); | 1439 f(mapping->foregroundLayer()); |
| 1441 | 1440 |
| 1442 if ((mode & ApplyToChildContainingLayers) && mapping->childTransformLayer()) | 1441 if ((mode & ApplyToChildContainingLayers) && mapping->childTransformLayer()) |
| 1443 f(mapping->childTransformLayer()); | 1442 f(mapping->childTransformLayer()); |
| 1444 | 1443 |
| 1445 if ((mode & ApplyToSquashingLayer) && mapping->squashingLayer()) | 1444 if ((mode & ApplyToSquashingLayer) && mapping->squashingLayer()) |
| 1446 f(mapping->squashingLayer()); | 1445 f(mapping->squashingLayer()); |
| 1447 | 1446 |
| 1448 if (((mode & ApplyToMaskLayers) || (mode & ApplyToContentLayers)) && mapping
->maskLayer()) | 1447 if (((mode & ApplyToMaskLayers) || (mode & ApplyToContentLayers)) && mapping
->maskLayer()) |
| 1449 f(mapping->maskLayer()); | 1448 f(mapping->maskLayer()); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2103 // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); | 2102 // ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 2104 | 2103 |
| 2105 SetContentsNeedsDisplayInRectFunctor functor = { | 2104 SetContentsNeedsDisplayInRectFunctor functor = { |
| 2106 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul
ation(), r.size())), | 2105 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul
ation(), r.size())), |
| 2107 invalidationReason, | 2106 invalidationReason, |
| 2108 client | 2107 client |
| 2109 }; | 2108 }; |
| 2110 ApplyToGraphicsLayers(this, functor, ApplyToContentLayers); | 2109 ApplyToGraphicsLayers(this, functor, ApplyToContentLayers); |
| 2111 } | 2110 } |
| 2112 | 2111 |
| 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 | |
| 2133 void CompositedLayerMapping::displayItemClientWasInvalidated(const DisplayItemCl
ient& displayItemClient, PaintInvalidationReason paintInvalidationReason) | 2112 void CompositedLayerMapping::displayItemClientWasInvalidated(const DisplayItemCl
ient& displayItemClient, PaintInvalidationReason paintInvalidationReason) |
| 2134 { | 2113 { |
| 2135 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason](Gr
aphicsLayer* layer) { | 2114 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason](Gr
aphicsLayer* layer) { |
| 2136 layer->displayItemClientWasInvalidated(displayItemClient, paintInvalidat
ionReason); | 2115 layer->displayItemClientWasInvalidated(displayItemClient, paintInvalidat
ionReason); |
| 2137 }, ApplyToContentLayers); | 2116 }, ApplyToContentLayers); |
| 2138 } | 2117 } |
| 2139 | 2118 |
| 2140 const GraphicsLayerPaintInfo* CompositedLayerMapping::containingSquashedLayer(co
nst LayoutObject* layoutObject, const Vector<GraphicsLayerPaintInfo>& layers, un
signed maxSquashedLayerIndex) | 2119 const GraphicsLayerPaintInfo* CompositedLayerMapping::containingSquashedLayer(co
nst LayoutObject* layoutObject, const Vector<GraphicsLayerPaintInfo>& layers, un
signed maxSquashedLayerIndex) |
| 2141 { | 2120 { |
| 2142 for (size_t i = 0; i < layers.size() && i < maxSquashedLayerIndex; ++i) { | 2121 for (size_t i = 0; i < layers.size() && i < maxSquashedLayerIndex; ++i) { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2254 return IntRect(); | 2233 return IntRect(); |
| 2255 // All squashed layers have the same clip and transform space, so we can
use the first squashed layer's | 2234 // All squashed layers have the same clip and transform space, so we can
use the first squashed layer's |
| 2256 // layoutObject to map the squashing layer's bounds into viewport space,
with offsetFromAnchorLayoutObject | 2235 // layoutObject to map the squashing layer's bounds into viewport space,
with offsetFromAnchorLayoutObject |
| 2257 // to translate squashing layer's bounds into the first squashed layer's
space. | 2236 // to translate squashing layer's bounds into the first squashed layer's
space. |
| 2258 anchorLayoutObject = m_squashedLayers[0].paintLayer->layoutObject(); | 2237 anchorLayoutObject = m_squashedLayers[0].paintLayer->layoutObject(); |
| 2259 offsetFromAnchorLayoutObject = m_squashedLayers[0].offsetFromLayoutObjec
t; | 2238 offsetFromAnchorLayoutObject = m_squashedLayers[0].offsetFromLayoutObjec
t; |
| 2260 } else { | 2239 } else { |
| 2261 ASSERT(graphicsLayer == m_graphicsLayer || graphicsLayer == m_scrollingC
ontentsLayer); | 2240 ASSERT(graphicsLayer == m_graphicsLayer || graphicsLayer == m_scrollingC
ontentsLayer); |
| 2262 anchorLayoutObject = m_owningLayer.layoutObject(); | 2241 anchorLayoutObject = m_owningLayer.layoutObject(); |
| 2263 offsetFromAnchorLayoutObject = graphicsLayer->offsetFromLayoutObject(); | 2242 offsetFromAnchorLayoutObject = graphicsLayer->offsetFromLayoutObject(); |
| 2264 adjustForCompositedScrolling(graphicsLayer, offsetFromAnchorLayoutObject
); | |
| 2265 } | 2243 } |
| 2266 | 2244 |
| 2267 // Start with the bounds of the graphics layer in the space of the anchor La
youtObject. | 2245 // Start with the bounds of the graphics layer in the space of the anchor La
youtObject. |
| 2268 FloatRect graphicsLayerBoundsInObjectSpace(graphicsLayerBounds); | 2246 FloatRect graphicsLayerBoundsInObjectSpace(graphicsLayerBounds); |
| 2269 graphicsLayerBoundsInObjectSpace.move(offsetFromAnchorLayoutObject); | 2247 graphicsLayerBoundsInObjectSpace.move(offsetFromAnchorLayoutObject); |
| 2270 // The object space means including writing mode flip. | 2248 // The object space means including writing mode flip. |
| 2271 if (anchorLayoutObject->isBox()) | 2249 if (anchorLayoutObject->isBox()) |
| 2272 toLayoutBox(anchorLayoutObject)->flipForWritingMode(graphicsLayerBoundsI
nObjectSpace); | 2250 toLayoutBox(anchorLayoutObject)->flipForWritingMode(graphicsLayerBoundsI
nObjectSpace); |
| 2273 | 2251 |
| 2274 // Now map the bounds to its visible content rect in screen space, including
applying clips along the way. | 2252 // 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... |
| 2355 LayoutSize CompositedLayerMapping::subpixelAccumulation() const | 2333 LayoutSize CompositedLayerMapping::subpixelAccumulation() const |
| 2356 { | 2334 { |
| 2357 return m_owningLayer.subpixelAccumulation(); | 2335 return m_owningLayer.subpixelAccumulation(); |
| 2358 } | 2336 } |
| 2359 | 2337 |
| 2360 bool CompositedLayerMapping::needsRepaint(const GraphicsLayer& graphicsLayer) co
nst | 2338 bool CompositedLayerMapping::needsRepaint(const GraphicsLayer& graphicsLayer) co
nst |
| 2361 { | 2339 { |
| 2362 return isScrollableAreaLayer(&graphicsLayer) ? true : m_owningLayer.needsRep
aint(); | 2340 return isScrollableAreaLayer(&graphicsLayer) ? true : m_owningLayer.needsRep
aint(); |
| 2363 } | 2341 } |
| 2364 | 2342 |
| 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 | |
| 2373 void CompositedLayerMapping::paintContents(const GraphicsLayer* graphicsLayer, G
raphicsContext& context, | 2343 void CompositedLayerMapping::paintContents(const GraphicsLayer* graphicsLayer, G
raphicsContext& context, |
| 2374 GraphicsLayerPaintingPhase graphicsLayerPaintingPhase, const IntRect& intere
stRect) const | 2344 GraphicsLayerPaintingPhase graphicsLayerPaintingPhase, const IntRect& intere
stRect) const |
| 2375 { | 2345 { |
| 2376 // https://code.google.com/p/chromium/issues/detail?id=343772 | 2346 // https://code.google.com/p/chromium/issues/detail?id=343772 |
| 2377 DisableCompositingQueryAsserts disabler; | 2347 DisableCompositingQueryAsserts disabler; |
| 2378 // Allow throttling to make sure no painting paths (e.g., | 2348 // Allow throttling to make sure no painting paths (e.g., |
| 2379 // ContentLayerDelegate::paintContents) try to paint throttled content. | 2349 // ContentLayerDelegate::paintContents) try to paint throttled content. |
| 2380 DocumentLifecycle::AllowThrottlingScope allowThrottling(m_owningLayer.layout
Object()->document().lifecycle()); | 2350 DocumentLifecycle::AllowThrottlingScope allowThrottling(m_owningLayer.layout
Object()->document().lifecycle()); |
| 2381 #if ENABLE(ASSERT) | 2351 #if ENABLE(ASSERT) |
| 2382 // FIXME: once the state machine is ready, this can be removed and we can re
fer to that instead. | 2352 // 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... |
| 2409 || graphicsLayer == m_foregroundLayer.get() | 2379 || graphicsLayer == m_foregroundLayer.get() |
| 2410 || graphicsLayer == m_backgroundLayer.get() | 2380 || graphicsLayer == m_backgroundLayer.get() |
| 2411 || graphicsLayer == m_maskLayer.get() | 2381 || graphicsLayer == m_maskLayer.get() |
| 2412 || graphicsLayer == m_childClippingMaskLayer.get() | 2382 || graphicsLayer == m_childClippingMaskLayer.get() |
| 2413 || graphicsLayer == m_scrollingContentsLayer.get()) { | 2383 || graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2414 | 2384 |
| 2415 GraphicsLayerPaintInfo paintInfo; | 2385 GraphicsLayerPaintInfo paintInfo; |
| 2416 paintInfo.paintLayer = &m_owningLayer; | 2386 paintInfo.paintLayer = &m_owningLayer; |
| 2417 paintInfo.compositedBounds = compositedBounds(); | 2387 paintInfo.compositedBounds = compositedBounds(); |
| 2418 paintInfo.offsetFromLayoutObject = graphicsLayer->offsetFromLayoutObject
(); | 2388 paintInfo.offsetFromLayoutObject = graphicsLayer->offsetFromLayoutObject
(); |
| 2419 adjustForCompositedScrolling(graphicsLayer, paintInfo.offsetFromLayoutOb
ject); | |
| 2420 | 2389 |
| 2421 // We have to use the same root as for hit testing, because both methods
can compute and cache clipRects. | 2390 // We have to use the same root as for hit testing, because both methods
can compute and cache clipRects. |
| 2422 doPaintTask(paintInfo, *graphicsLayer, paintLayerFlags, context, interes
tRect); | 2391 doPaintTask(paintInfo, *graphicsLayer, paintLayerFlags, context, interes
tRect); |
| 2423 } else if (graphicsLayer == m_squashingLayer.get()) { | 2392 } else if (graphicsLayer == m_squashingLayer.get()) { |
| 2424 for (size_t i = 0; i < m_squashedLayers.size(); ++i) | 2393 for (size_t i = 0; i < m_squashedLayers.size(); ++i) |
| 2425 doPaintTask(m_squashedLayers[i], *graphicsLayer, paintLayerFlags, co
ntext, interestRect); | 2394 doPaintTask(m_squashedLayers[i], *graphicsLayer, paintLayerFlags, co
ntext, interestRect); |
| 2426 } else if (isScrollableAreaLayer(graphicsLayer)) { | 2395 } else if (isScrollableAreaLayer(graphicsLayer)) { |
| 2427 paintScrollableArea(graphicsLayer, context, interestRect); | 2396 paintScrollableArea(graphicsLayer, context, interestRect); |
| 2428 } | 2397 } |
| 2429 InspectorInstrumentation::didPaint(m_owningLayer.layoutObject()->frame(), gr
aphicsLayer, context, LayoutRect(interestRect)); | 2398 InspectorInstrumentation::didPaint(m_owningLayer.layoutObject()->frame(), gr
aphicsLayer, context, LayoutRect(interestRect)); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2636 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2605 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2637 name = "Scrolling Contents Layer"; | 2606 name = "Scrolling Contents Layer"; |
| 2638 } else { | 2607 } else { |
| 2639 ASSERT_NOT_REACHED(); | 2608 ASSERT_NOT_REACHED(); |
| 2640 } | 2609 } |
| 2641 | 2610 |
| 2642 return name; | 2611 return name; |
| 2643 } | 2612 } |
| 2644 | 2613 |
| 2645 } // namespace blink | 2614 } // namespace blink |
| OLD | NEW |