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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 return ts; | 362 return ts; |
363 } | 363 } |
364 | 364 |
365 static TextStream& operator<<(TextStream& ts, const RenderSVGRoot& root) | 365 static TextStream& operator<<(TextStream& ts, const RenderSVGRoot& root) |
366 { | 366 { |
367 return writePositionAndStyle(ts, root); | 367 return writePositionAndStyle(ts, root); |
368 } | 368 } |
369 | 369 |
370 static void writeRenderSVGTextBox(TextStream& ts, const RenderSVGText& text) | 370 static void writeRenderSVGTextBox(TextStream& ts, const RenderSVGText& text) |
371 { | 371 { |
372 SVGRootInlineBox* box = static_cast<SVGRootInlineBox*>(text.firstRootBox()); | 372 SVGRootInlineBox* box = toSVGRootInlineBox(text.firstRootBox()); |
373 if (!box) | 373 if (!box) |
374 return; | 374 return; |
375 | 375 |
376 ts << " " << enclosingIntRect(FloatRect(text.location(), FloatSize(box->logi
calWidth(), box->logicalHeight()))); | 376 ts << " " << enclosingIntRect(FloatRect(text.location(), FloatSize(box->logi
calWidth(), box->logicalHeight()))); |
377 | 377 |
378 // FIXME: Remove this hack, once the new text layout engine is completly lan
ded. We want to preserve the old layout test results for now. | 378 // FIXME: Remove this hack, once the new text layout engine is completly lan
ded. We want to preserve the old layout test results for now. |
379 ts << " contains 1 chunk(s)"; | 379 ts << " contains 1 chunk(s)"; |
380 | 380 |
381 if (text.parent() && (text.parent()->style()->visitedDependentColor(CSSPrope
rtyColor) != text.style()->visitedDependentColor(CSSPropertyColor))) | 381 if (text.parent() && (text.parent()->style()->visitedDependentColor(CSSPrope
rtyColor) != text.style()->visitedDependentColor(CSSPropertyColor))) |
382 writeNameValuePair(ts, "color", text.resolveColor(CSSPropertyColor).name
ForRenderTreeAsText()); | 382 writeNameValuePair(ts, "color", text.resolveColor(CSSPropertyColor).name
ForRenderTreeAsText()); |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 ts << " "; | 659 ts << " "; |
660 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); | 660 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); |
661 ts << " "; | 661 ts << " "; |
662 writeStandardPrefix(ts, *filter, 0); | 662 writeStandardPrefix(ts, *filter, 0); |
663 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; | 663 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; |
664 } | 664 } |
665 } | 665 } |
666 } | 666 } |
667 | 667 |
668 } // namespace WebCore | 668 } // namespace WebCore |
OLD | NEW |