| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 89a618fbd4d60aab43302ade65739ec2d3429378..db89f9c653ecfc259443ad08f687a89aabd03568 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1257,7 +1257,7 @@ unsigned Internals::touchEventHandlerCount(Document* document, ExceptionState& e
|
|
|
| static RenderLayer* findRenderLayerForGraphicsLayer(RenderLayer* searchRoot, GraphicsLayer* graphicsLayer, String* layerType)
|
| {
|
| - if (searchRoot->compositedLayerMapping() && graphicsLayer == searchRoot->compositedLayerMapping()->mainGraphicsLayer())
|
| + if (searchRoot->compositingState() == PaintsIntoOwnBacking && graphicsLayer == searchRoot->compositedLayerMapping()->mainGraphicsLayer())
|
| return searchRoot;
|
|
|
| GraphicsLayer* layerForScrolling = searchRoot->scrollableArea() ? searchRoot->scrollableArea()->layerForScrolling() : 0;
|
| @@ -1740,7 +1740,7 @@ String Internals::elementLayerTreeAsText(Element* element, unsigned flags, Excep
|
|
|
| RenderLayer* layer = toRenderBox(renderer)->layer();
|
| if (!layer
|
| - || !layer->compositedLayerMapping()
|
| + || layer->compositingState() == NotComposited
|
| || !layer->compositedLayerMapping()->mainGraphicsLayer()) {
|
| // Don't raise exception in these cases which may be normally used in tests.
|
| return String();
|
|
|