| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |    2  * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 
|    3  * Copyright (C) Research In Motion Limited 2010. All rights reserved. |    3  * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 
|    4  * Copyright 2014 The Chromium Authors. All rights reserved. |    4  * Copyright 2014 The Chromium Authors. All rights reserved. | 
|    5  * |    5  * | 
|    6  * This library is free software; you can redistribute it and/or |    6  * This library is free software; you can redistribute it and/or | 
|    7  * modify it under the terms of the GNU Library General Public |    7  * modify it under the terms of the GNU Library General Public | 
|    8  * License as published by the Free Software Foundation; either |    8  * License as published by the Free Software Foundation; either | 
|    9  * version 2 of the License, or (at your option) any later version. |    9  * version 2 of the License, or (at your option) any later version. | 
|   10  * |   10  * | 
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  167  |  167  | 
|  168     // Draw the content into a Picture. |  168     // Draw the content into a Picture. | 
|  169     OwnPtr<DisplayItemList> displayItemList; |  169     OwnPtr<DisplayItemList> displayItemList; | 
|  170     if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |  170     if (RuntimeEnabledFeatures::slimmingPaintEnabled()) | 
|  171         displayItemList = DisplayItemList::create(); |  171         displayItemList = DisplayItemList::create(); | 
|  172     GraphicsContext recordingContext(nullptr, displayItemList.get()); |  172     GraphicsContext recordingContext(nullptr, displayItemList.get()); | 
|  173     recordingContext.beginRecording(FloatRect(FloatPoint(), tileBounds.size())); |  173     recordingContext.beginRecording(FloatRect(FloatPoint(), tileBounds.size())); | 
|  174  |  174  | 
|  175     ASSERT(attributes().patternContentElement()); |  175     ASSERT(attributes().patternContentElement()); | 
|  176     LayoutSVGResourceContainer* patternRenderer = |  176     LayoutSVGResourceContainer* patternRenderer = | 
|  177         toLayoutSVGResourceContainer(attributes().patternContentElement()->rende
     rer()); |  177         toLayoutSVGResourceContainer(attributes().patternContentElement()->layou
     tObject()); | 
|  178     ASSERT(patternRenderer); |  178     ASSERT(patternRenderer); | 
|  179     ASSERT(!patternRenderer->needsLayout()); |  179     ASSERT(!patternRenderer->needsLayout()); | 
|  180  |  180  | 
|  181     SubtreeContentTransformScope contentTransformScope(contentTransform); |  181     SubtreeContentTransformScope contentTransformScope(contentTransform); | 
|  182  |  182  | 
|  183     { |  183     { | 
|  184         TransformRecorder transformRecorder(recordingContext, patternRenderer->d
     isplayItemClient(), tileTransform); |  184         TransformRecorder transformRecorder(recordingContext, patternRenderer->d
     isplayItemClient(), tileTransform); | 
|  185         for (LayoutObject* child = patternRenderer->firstChild(); child; child =
      child->nextSibling()) |  185         for (LayoutObject* child = patternRenderer->firstChild(); child; child =
      child->nextSibling()) | 
|  186             SVGPaintContext::paintSubtree(&recordingContext, child); |  186             SVGPaintContext::paintSubtree(&recordingContext, child); | 
|  187     } |  187     } | 
|  188  |  188  | 
|  189     if (displayItemList) |  189     if (displayItemList) | 
|  190         displayItemList->replay(&recordingContext); |  190         displayItemList->replay(&recordingContext); | 
|  191     return recordingContext.endRecording(); |  191     return recordingContext.endRecording(); | 
|  192 } |  192 } | 
|  193  |  193  | 
|  194 } |  194 } | 
| OLD | NEW |