OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/paint/SVGFilterPainter.h" | 5 #include "core/paint/SVGFilterPainter.h" |
6 | 6 |
7 #include "core/layout/svg/LayoutSVGResourceFilter.h" | 7 #include "core/layout/svg/LayoutSVGResourceFilter.h" |
8 #include "core/layout/svg/SVGLayoutSupport.h" | 8 #include "core/layout/svg/SVGLayoutSupport.h" |
9 #include "core/paint/LayoutObjectDrawingRecorder.h" | 9 #include "core/paint/LayoutObjectDrawingRecorder.h" |
10 #include "core/paint/TransformRecorder.h" | 10 #include "core/paint/TransformRecorder.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 GraphicsContext& context = recordingContext.paintingContext(); | 174 GraphicsContext& context = recordingContext.paintingContext(); |
175 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(context, object,
DisplayItem::SVGFilter, LayoutPoint())) | 175 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(context, object,
DisplayItem::SVGFilter, LayoutPoint())) |
176 return; | 176 return; |
177 | 177 |
178 // TODO(chrishtr): stop using an infinite rect, and instead bound the filter
. | 178 // TODO(chrishtr): stop using an infinite rect, and instead bound the filter
. |
179 LayoutObjectDrawingRecorder recorder(context, object, DisplayItem::SVGFilter
, LayoutRect::infiniteIntRect(), LayoutPoint()); | 179 LayoutObjectDrawingRecorder recorder(context, object, DisplayItem::SVGFilter
, LayoutRect::infiniteIntRect(), LayoutPoint()); |
180 if (filterData && filterData->m_state == FilterData::ReadyToPaint) | 180 if (filterData && filterData->m_state == FilterData::ReadyToPaint) |
181 paintFilteredContent(object, context, filterData); | 181 paintFilteredContent(object, context, filterData); |
182 } | 182 } |
183 | 183 |
184 } | 184 } // namespace blink |
OLD | NEW |