| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * (C) 2005 Rob Buis <buis@kde.org> | 3 * (C) 2005 Rob Buis <buis@kde.org> |
| 4 * (C) 2006 Alexander Kellett <lypanov@kde.org> | 4 * (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 writeIfNotDefault(ts, "clip rule", svgStyle.clipRule(), RULE_NONZERO); | 320 writeIfNotDefault(ts, "clip rule", svgStyle.clipRule(), RULE_NONZERO); |
| 321 } | 321 } |
| 322 | 322 |
| 323 writeIfNotEmpty(ts, "start marker", svgStyle.markerStartResource()); | 323 writeIfNotEmpty(ts, "start marker", svgStyle.markerStartResource()); |
| 324 writeIfNotEmpty(ts, "middle marker", svgStyle.markerMidResource()); | 324 writeIfNotEmpty(ts, "middle marker", svgStyle.markerMidResource()); |
| 325 writeIfNotEmpty(ts, "end marker", svgStyle.markerEndResource()); | 325 writeIfNotEmpty(ts, "end marker", svgStyle.markerEndResource()); |
| 326 } | 326 } |
| 327 | 327 |
| 328 static TextStream& writePositionAndStyle(TextStream& ts, | 328 static TextStream& writePositionAndStyle(TextStream& ts, |
| 329 const LayoutObject& object) { | 329 const LayoutObject& object) { |
| 330 ts << " " | 330 ts << " " << enclosingIntRect( |
| 331 << enclosingIntRect( | 331 const_cast<LayoutObject&>(object).absoluteVisualRect()); |
| 332 const_cast<LayoutObject&>(object).absoluteClippedOverflowRect()); | |
| 333 writeStyle(ts, object); | 332 writeStyle(ts, object); |
| 334 return ts; | 333 return ts; |
| 335 } | 334 } |
| 336 | 335 |
| 337 static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape) { | 336 static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape) { |
| 338 writePositionAndStyle(ts, shape); | 337 writePositionAndStyle(ts, shape); |
| 339 | 338 |
| 340 SVGElement* svgElement = shape.element(); | 339 SVGElement* svgElement = shape.element(); |
| 341 ASSERT(svgElement); | 340 ASSERT(svgElement); |
| 342 SVGLengthContext lengthContext(svgElement); | 341 SVGLengthContext lengthContext(svgElement); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 ts << " "; | 755 ts << " "; |
| 757 writeStandardPrefix(ts, *filter, 0); | 756 writeStandardPrefix(ts, *filter, 0); |
| 758 ts << " " << filter->resourceBoundingBox(&object) << "\n"; | 757 ts << " " << filter->resourceBoundingBox(&object) << "\n"; |
| 759 } | 758 } |
| 760 } | 759 } |
| 761 } | 760 } |
| 762 } | 761 } |
| 763 } | 762 } |
| 764 | 763 |
| 765 } // namespace blink | 764 } // namespace blink |
| OLD | NEW |