|
Lines 546-562
void RenderLayerBacking::updateCustomAppearance(const RenderStyle& style)
a/Source/WebCore/rendering/RenderLayerBacking.cpp_sec1
|
| 546 |
m_graphicsLayer->setCustomAppearance(GraphicsLayer::NoCustomAppearance); |
546 |
m_graphicsLayer->setCustomAppearance(GraphicsLayer::NoCustomAppearance); |
| 547 |
} |
547 |
} |
| 548 |
|
548 |
|
| 549 |
// FIXME: the hasAcceleratedTouchScrolling()/needsCompositedScrolling() concepts need to be merged. |
|
|
| 550 |
static bool layerOrAncestorIsTransformedOrUsingCompositedScrolling(RenderLayer& layer) |
549 |
static bool layerOrAncestorIsTransformedOrUsingCompositedScrolling(RenderLayer& layer) |
| 551 |
{ |
550 |
{ |
| 552 |
for (RenderLayer* curr = &layer; curr; curr = curr->parent()) { |
551 |
for (RenderLayer* curr = &layer; curr; curr = curr->parent()) { |
| 553 |
if (curr->hasTransform() |
552 |
if (curr->hasTransform() || curr->usesAcceleratedScrolling()) |
| 554 |
#if PLATFORM(IOS) |
|
|
| 555 |
|| curr->hasTouchScrollableOverflow() |
| 556 |
#else |
| 557 |
|| curr->needsCompositedScrolling() |
| 558 |
#endif |
| 559 |
) |
| 560 |
return true; |
553 |
return true; |
| 561 |
} |
554 |
} |
| 562 |
|
555 |
|
|
Lines 682-693
bool RenderLayerBacking::updateConfiguration()
a/Source/WebCore/rendering/RenderLayerBacking.cpp_sec2
|
| 682 |
bool needsDescendantsClippingLayer = compositor().clipsCompositingDescendants(m_owningLayer); |
675 |
bool needsDescendantsClippingLayer = compositor().clipsCompositingDescendants(m_owningLayer); |
| 683 |
|
676 |
|
| 684 |
if (!renderer().view().needsLayout()) { |
677 |
if (!renderer().view().needsLayout()) { |
| 685 |
bool usesCompositedScrolling; |
678 |
bool usesCompositedScrolling = m_owningLayer.usesAcceleratedScrolling(); |
| 686 |
#if PLATFORM(IOS) |
679 |
|
| 687 |
usesCompositedScrolling = m_owningLayer.hasTouchScrollableOverflow(); |
|
|
| 688 |
#else |
| 689 |
usesCompositedScrolling = m_owningLayer.needsCompositedScrolling(); |
| 690 |
#endif |
| 691 |
// Our scrolling layer will clip. |
680 |
// Our scrolling layer will clip. |
| 692 |
if (usesCompositedScrolling) |
681 |
if (usesCompositedScrolling) |
| 693 |
needsDescendantsClippingLayer = false; |
682 |
needsDescendantsClippingLayer = false; |