| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 #include "core/rendering/exclusions/ExclusionShapeInfo.h" | 31 #include "core/rendering/exclusions/ExclusionShapeInfo.h" |
| 32 | 32 |
| 33 #include "core/rendering/exclusions/ExclusionShape.h" | 33 #include "core/rendering/exclusions/ExclusionShape.h" |
| 34 #include "core/rendering/RenderBlock.h" | |
| 35 #include "core/rendering/RenderBox.h" | |
| 36 #include "core/rendering/RenderRegion.h" | 34 #include "core/rendering/RenderRegion.h" |
| 37 #include "core/rendering/style/RenderStyle.h" | 35 #include "core/rendering/style/RenderStyle.h" |
| 38 | 36 |
| 39 namespace WebCore { | 37 namespace WebCore { |
| 40 template<class RenderType, ExclusionShapeValue* (RenderStyle::*shapeGetter)() co
nst, void (ExclusionShape::*intervalGetter)(LayoutUnit, LayoutUnit, SegmentList&
) const> | 38 template<class RenderType, ExclusionShapeValue* (RenderStyle::*shapeGetter)() co
nst, void (ExclusionShape::*intervalGetter)(LayoutUnit, LayoutUnit, SegmentList&
) const> |
| 41 const ExclusionShape* ExclusionShapeInfo<RenderType, shapeGetter, intervalGetter
>::computedShape() const | 39 const ExclusionShape* ExclusionShapeInfo<RenderType, shapeGetter, intervalGetter
>::computedShape() const |
| 42 { | 40 { |
| 43 if (ExclusionShape* exclusionShape = m_shape.get()) | 41 if (ExclusionShape* exclusionShape = m_shape.get()) |
| 44 return exclusionShape; | 42 return exclusionShape; |
| 45 | 43 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 m_segments[i].logicalLeft += logicalLeftOffset; | 77 m_segments[i].logicalLeft += logicalLeftOffset; |
| 80 m_segments[i].logicalRight += logicalLeftOffset; | 78 m_segments[i].logicalRight += logicalLeftOffset; |
| 81 } | 79 } |
| 82 | 80 |
| 83 return m_segments.size(); | 81 return m_segments.size(); |
| 84 } | 82 } |
| 85 | 83 |
| 86 template class ExclusionShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside
, &ExclusionShape::getIncludedIntervals>; | 84 template class ExclusionShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside
, &ExclusionShape::getIncludedIntervals>; |
| 87 template class ExclusionShapeInfo<RenderBox, &RenderStyle::shapeOutside, &Exclus
ionShape::getExcludedIntervals>; | 85 template class ExclusionShapeInfo<RenderBox, &RenderStyle::shapeOutside, &Exclus
ionShape::getExcludedIntervals>; |
| 88 } | 86 } |
| OLD | NEW |