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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 if (!textBox->isLeftToRightDirection() || textBox->dirOverride()) { | 449 if (!textBox->isLeftToRightDirection() || textBox->dirOverride()) { |
450 ts << (textBox->isLeftToRightDirection() ? " LTR" : " RTL"); | 450 ts << (textBox->isLeftToRightDirection() ? " LTR" : " RTL"); |
451 if (textBox->dirOverride()) | 451 if (textBox->dirOverride()) |
452 ts << " override"; | 452 ts << " override"; |
453 } | 453 } |
454 | 454 |
455 ts << ": " << quoteAndEscapeNonPrintables(text.substring(fragment.charac
terOffset, fragment.length)) << "\n"; | 455 ts << ": " << quoteAndEscapeNonPrintables(text.substring(fragment.charac
terOffset, fragment.length)) << "\n"; |
456 } | 456 } |
457 } | 457 } |
458 | 458 |
459 static inline void writeSVGInlineTextBoxes(TextStream& ts, const RenderText& tex
t, int indent) | 459 static inline void writeSVGInlineTextBoxes(TextStream& ts, const LayoutText& tex
t, int indent) |
460 { | 460 { |
461 for (InlineTextBox* box = text.firstTextBox(); box; box = box->nextTextBox()
) { | 461 for (InlineTextBox* box = text.firstTextBox(); box; box = box->nextTextBox()
) { |
462 if (!box->isSVGInlineTextBox()) | 462 if (!box->isSVGInlineTextBox()) |
463 continue; | 463 continue; |
464 | 464 |
465 writeSVGInlineTextBox(ts, toSVGInlineTextBox(box), indent); | 465 writeSVGInlineTextBox(ts, toSVGInlineTextBox(box), indent); |
466 } | 466 } |
467 } | 467 } |
468 | 468 |
469 static void writeStandardPrefix(TextStream& ts, const LayoutObject& object, int
indent) | 469 static void writeStandardPrefix(TextStream& ts, const LayoutObject& object, int
indent) |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 ts << " "; | 675 ts << " "; |
676 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); | 676 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); |
677 ts << " "; | 677 ts << " "; |
678 writeStandardPrefix(ts, *filter, 0); | 678 writeStandardPrefix(ts, *filter, 0); |
679 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; | 679 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; |
680 } | 680 } |
681 } | 681 } |
682 } | 682 } |
683 | 683 |
684 } // namespace blink | 684 } // namespace blink |
OLD | NEW |