| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 ts << " [id=\"" << element->GetIdAttribute() << "\"]"; | 270 ts << " [id=\"" << element->GetIdAttribute() << "\"]"; |
| 271 } | 271 } |
| 272 | 272 |
| 273 static void WriteStyle(TextStream& ts, const LayoutObject& object) { | 273 static void WriteStyle(TextStream& ts, const LayoutObject& object) { |
| 274 const ComputedStyle& style = object.StyleRef(); | 274 const ComputedStyle& style = object.StyleRef(); |
| 275 const SVGComputedStyle& svg_style = style.SvgStyle(); | 275 const SVGComputedStyle& svg_style = style.SvgStyle(); |
| 276 | 276 |
| 277 if (!object.LocalSVGTransform().IsIdentity()) | 277 if (!object.LocalSVGTransform().IsIdentity()) |
| 278 WriteNameValuePair(ts, "transform", object.LocalSVGTransform()); | 278 WriteNameValuePair(ts, "transform", object.LocalSVGTransform()); |
| 279 WriteIfNotDefault(ts, "image rendering", style.ImageRendering(), | 279 WriteIfNotDefault(ts, "image rendering", |
| 280 ComputedStyle::InitialImageRendering()); | 280 static_cast<int>(style.ImageRendering()), |
| 281 static_cast<int>(ComputedStyle::InitialImageRendering())); |
| 281 WriteIfNotDefault(ts, "opacity", style.Opacity(), | 282 WriteIfNotDefault(ts, "opacity", style.Opacity(), |
| 282 ComputedStyle::InitialOpacity()); | 283 ComputedStyle::InitialOpacity()); |
| 283 if (object.IsSVGShape()) { | 284 if (object.IsSVGShape()) { |
| 284 const LayoutSVGShape& shape = static_cast<const LayoutSVGShape&>(object); | 285 const LayoutSVGShape& shape = static_cast<const LayoutSVGShape&>(object); |
| 285 DCHECK(shape.GetElement()); | 286 DCHECK(shape.GetElement()); |
| 286 | 287 |
| 287 SVGPaintDescription stroke_paint_description = | 288 SVGPaintDescription stroke_paint_description = |
| 288 LayoutSVGResourcePaintServer::RequestPaintDescription( | 289 LayoutSVGResourcePaintServer::RequestPaintDescription( |
| 289 shape, shape.StyleRef(), kApplyToStrokeMode); | 290 shape, shape.StyleRef(), kApplyToStrokeMode); |
| 290 if (stroke_paint_description.is_valid) { | 291 if (stroke_paint_description.is_valid) { |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 WriteIndent(ts, indent); | 768 WriteIndent(ts, indent); |
| 768 ts << " "; | 769 ts << " "; |
| 769 WriteNameAndQuotedValue(ts, "filter", id); | 770 WriteNameAndQuotedValue(ts, "filter", id); |
| 770 ts << " "; | 771 ts << " "; |
| 771 WriteStandardPrefix(ts, *filter, 0); | 772 WriteStandardPrefix(ts, *filter, 0); |
| 772 ts << " " << filter->ResourceBoundingBox(&object) << "\n"; | 773 ts << " " << filter->ResourceBoundingBox(&object) << "\n"; |
| 773 } | 774 } |
| 774 } | 775 } |
| 775 | 776 |
| 776 } // namespace blink | 777 } // namespace blink |
| OLD | NEW |