| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index d438771fc80ff3f69537a188dcfad139e8a171f0..3e678c2da329b39162a3cac9c9c2e5a2799d8759 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1300,7 +1300,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->hasCompositedLayerMapping() && graphicsLayer == searchRoot->compositedLayerMapping()->mainGraphicsLayer())
|
| return searchRoot;
|
|
|
| GraphicsLayer* layerForScrolling = searchRoot->scrollableArea() ? searchRoot->scrollableArea()->layerForScrolling() : 0;
|
| @@ -1783,7 +1783,7 @@ String Internals::elementLayerTreeAsText(Element* element, unsigned flags, Excep
|
|
|
| RenderLayer* layer = toRenderBox(renderer)->layer();
|
| if (!layer
|
| - || !layer->compositedLayerMapping()
|
| + || !layer->hasCompositedLayerMapping()
|
| || !layer->compositedLayerMapping()->mainGraphicsLayer()) {
|
| // Don't raise exception in these cases which may be normally used in tests.
|
| return String();
|
|
|