| 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 { | 466 { |
| 467 writeIndent(ts, indent); | 467 writeIndent(ts, indent); |
| 468 ts << object.renderName(); | 468 ts << object.renderName(); |
| 469 | 469 |
| 470 if (object.node()) | 470 if (object.node()) |
| 471 ts << " {" << object.node()->nodeName() << "}"; | 471 ts << " {" << object.node()->nodeName() << "}"; |
| 472 } | 472 } |
| 473 | 473 |
| 474 static void writeChildren(TextStream& ts, const RenderObject& object, int indent
) | 474 static void writeChildren(TextStream& ts, const RenderObject& object, int indent
) |
| 475 { | 475 { |
| 476 for (RenderObject* child = object.firstChild(); child; child = child->nextSi
bling()) | 476 for (RenderObject* child = object.slowFirstChild(); child; child = child->ne
xtSibling()) |
| 477 write(ts, *child, indent + 1); | 477 write(ts, *child, indent + 1); |
| 478 } | 478 } |
| 479 | 479 |
| 480 static inline void writeCommonGradientProperties(TextStream& ts, SVGSpreadMethod
Type spreadMethod, const AffineTransform& gradientTransform, SVGUnitTypes::SVGUn
itType gradientUnits) | 480 static inline void writeCommonGradientProperties(TextStream& ts, SVGSpreadMethod
Type spreadMethod, const AffineTransform& gradientTransform, SVGUnitTypes::SVGUn
itType gradientUnits) |
| 481 { | 481 { |
| 482 writeNameValuePair(ts, "gradientUnits", gradientUnits); | 482 writeNameValuePair(ts, "gradientUnits", gradientUnits); |
| 483 | 483 |
| 484 if (spreadMethod != SVGSpreadMethodPad) | 484 if (spreadMethod != SVGSpreadMethodPad) |
| 485 ts << " [spreadMethod=" << spreadMethod << "]"; | 485 ts << " [spreadMethod=" << spreadMethod << "]"; |
| 486 | 486 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 ts << " "; | 673 ts << " "; |
| 674 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); | 674 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); |
| 675 ts << " "; | 675 ts << " "; |
| 676 writeStandardPrefix(ts, *filter, 0); | 676 writeStandardPrefix(ts, *filter, 0); |
| 677 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; | 677 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; |
| 678 } | 678 } |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 | 681 |
| 682 } // namespace WebCore | 682 } // namespace WebCore |
| OLD | NEW |