Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: Source/core/layout/LayoutTreeAsText.cpp

Issue 933953003: Move the remaining rendering/svg/RenderSVG* files to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutPart.cpp ('k') | Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutPart.cpp ('k') | Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698