| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "core/frame/FrameView.h" | 34 #include "core/frame/FrameView.h" |
| 35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 36 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
| 37 #include "core/html/HTMLElement.h" | 37 #include "core/html/HTMLElement.h" |
| 38 #include "core/layout/Layer.h" | 38 #include "core/layout/Layer.h" |
| 39 #include "core/layout/LayoutPart.h" | 39 #include "core/layout/LayoutPart.h" |
| 40 #include "core/layout/LayoutTableCell.h" | 40 #include "core/layout/LayoutTableCell.h" |
| 41 #include "core/layout/compositing/CompositedLayerMapping.h" | 41 #include "core/layout/compositing/CompositedLayerMapping.h" |
| 42 #include "core/layout/line/InlineTextBox.h" | 42 #include "core/layout/line/InlineTextBox.h" |
| 43 #include "core/layout/svg/LayoutSVGContainer.h" | 43 #include "core/layout/svg/LayoutSVGContainer.h" |
| 44 #include "core/layout/svg/LayoutSVGGradientStop.h" |
| 44 #include "core/layout/svg/LayoutSVGImage.h" | 45 #include "core/layout/svg/LayoutSVGImage.h" |
| 45 #include "core/layout/svg/LayoutSVGInlineText.h" | 46 #include "core/layout/svg/LayoutSVGInlineText.h" |
| 46 #include "core/layout/svg/LayoutSVGPath.h" | 47 #include "core/layout/svg/LayoutSVGPath.h" |
| 48 #include "core/layout/svg/LayoutSVGRoot.h" |
| 47 #include "core/layout/svg/LayoutSVGText.h" | 49 #include "core/layout/svg/LayoutSVGText.h" |
| 48 #include "core/layout/svg/SVGLayoutTreeAsText.h" | 50 #include "core/layout/svg/SVGLayoutTreeAsText.h" |
| 49 #include "core/page/PrintContext.h" | 51 #include "core/page/PrintContext.h" |
| 50 #include "core/rendering/RenderDetailsMarker.h" | 52 #include "core/rendering/RenderDetailsMarker.h" |
| 51 #include "core/rendering/RenderFileUploadControl.h" | 53 #include "core/rendering/RenderFileUploadControl.h" |
| 52 #include "core/rendering/RenderInline.h" | 54 #include "core/rendering/RenderInline.h" |
| 53 #include "core/rendering/RenderListItem.h" | 55 #include "core/rendering/RenderListItem.h" |
| 54 #include "core/rendering/RenderListMarker.h" | 56 #include "core/rendering/RenderListMarker.h" |
| 55 #include "core/rendering/RenderView.h" | 57 #include "core/rendering/RenderView.h" |
| 56 #include "core/rendering/svg/RenderSVGGradientStop.h" | |
| 57 #include "core/rendering/svg/RenderSVGRoot.h" | |
| 58 #include "wtf/HexNumber.h" | 58 #include "wtf/HexNumber.h" |
| 59 #include "wtf/Vector.h" | 59 #include "wtf/Vector.h" |
| 60 #include "wtf/unicode/CharacterNames.h" | 60 #include "wtf/unicode/CharacterNames.h" |
| 61 | 61 |
| 62 namespace blink { | 62 namespace blink { |
| 63 | 63 |
| 64 using namespace HTMLNames; | 64 using namespace HTMLNames; |
| 65 | 65 |
| 66 static void printBorderStyle(TextStream& ts, const EBorderStyle borderStyle) | 66 static void printBorderStyle(TextStream& ts, const EBorderStyle borderStyle) |
| 67 { | 67 { |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 ts << "\n"; | 429 ts << "\n"; |
| 430 } | 430 } |
| 431 | 431 |
| 432 void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi
or behavior) | 432 void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi
or behavior) |
| 433 { | 433 { |
| 434 if (o.isSVGShape()) { | 434 if (o.isSVGShape()) { |
| 435 write(ts, toLayoutSVGShape(o), indent); | 435 write(ts, toLayoutSVGShape(o), indent); |
| 436 return; | 436 return; |
| 437 } | 437 } |
| 438 if (o.isSVGGradientStop()) { | 438 if (o.isSVGGradientStop()) { |
| 439 writeSVGGradientStop(ts, toRenderSVGGradientStop(o), indent); | 439 writeSVGGradientStop(ts, toLayoutSVGGradientStop(o), indent); |
| 440 return; | 440 return; |
| 441 } | 441 } |
| 442 if (o.isSVGResourceContainer()) { | 442 if (o.isSVGResourceContainer()) { |
| 443 writeSVGResourceContainer(ts, o, indent); | 443 writeSVGResourceContainer(ts, o, indent); |
| 444 return; | 444 return; |
| 445 } | 445 } |
| 446 if (o.isSVGContainer()) { | 446 if (o.isSVGContainer()) { |
| 447 writeSVGContainer(ts, o, indent); | 447 writeSVGContainer(ts, o, indent); |
| 448 return; | 448 return; |
| 449 } | 449 } |
| 450 if (o.isSVGRoot()) { | 450 if (o.isSVGRoot()) { |
| 451 write(ts, toRenderSVGRoot(o), indent); | 451 write(ts, toLayoutSVGRoot(o), indent); |
| 452 return; | 452 return; |
| 453 } | 453 } |
| 454 if (o.isSVGText()) { | 454 if (o.isSVGText()) { |
| 455 writeSVGText(ts, toLayoutSVGText(o), indent); | 455 writeSVGText(ts, toLayoutSVGText(o), indent); |
| 456 return; | 456 return; |
| 457 } | 457 } |
| 458 if (o.isSVGInlineText()) { | 458 if (o.isSVGInlineText()) { |
| 459 writeSVGInlineText(ts, toLayoutSVGInlineText(o), indent); | 459 writeSVGInlineText(ts, toLayoutSVGInlineText(o), indent); |
| 460 return; | 460 return; |
| 461 } | 461 } |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 element->document().updateLayout(); | 780 element->document().updateLayout(); |
| 781 | 781 |
| 782 LayoutObject* renderer = element->renderer(); | 782 LayoutObject* renderer = element->renderer(); |
| 783 if (!renderer || !renderer->isListItem()) | 783 if (!renderer || !renderer->isListItem()) |
| 784 return String(); | 784 return String(); |
| 785 | 785 |
| 786 return toRenderListItem(renderer)->markerText(); | 786 return toRenderListItem(renderer)->markerText(); |
| 787 } | 787 } |
| 788 | 788 |
| 789 } // namespace blink | 789 } // namespace blink |
| OLD | NEW |