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

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

Issue 927583002: Moving RenderSVG* files from rendering/ 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/core.gypi ('k') | Source/core/layout/style/SVGLayoutStyle.cpp » ('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 22 matching lines...) Expand all
33 #include "core/editing/FrameSelection.h" 33 #include "core/editing/FrameSelection.h"
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/LayoutTableCell.h" 39 #include "core/layout/LayoutTableCell.h"
40 #include "core/layout/compositing/CompositedLayerMapping.h" 40 #include "core/layout/compositing/CompositedLayerMapping.h"
41 #include "core/layout/line/InlineTextBox.h" 41 #include "core/layout/line/InlineTextBox.h"
42 #include "core/layout/svg/LayoutSVGContainer.h" 42 #include "core/layout/svg/LayoutSVGContainer.h"
43 #include "core/layout/svg/LayoutSVGImage.h"
43 #include "core/layout/svg/LayoutSVGInlineText.h" 44 #include "core/layout/svg/LayoutSVGInlineText.h"
45 #include "core/layout/svg/LayoutSVGPath.h"
44 #include "core/layout/svg/LayoutSVGText.h" 46 #include "core/layout/svg/LayoutSVGText.h"
45 #include "core/layout/svg/SVGLayoutTreeAsText.h" 47 #include "core/layout/svg/SVGLayoutTreeAsText.h"
46 #include "core/page/PrintContext.h" 48 #include "core/page/PrintContext.h"
47 #include "core/rendering/RenderBR.h" 49 #include "core/rendering/RenderBR.h"
48 #include "core/rendering/RenderDetailsMarker.h" 50 #include "core/rendering/RenderDetailsMarker.h"
49 #include "core/rendering/RenderFileUploadControl.h" 51 #include "core/rendering/RenderFileUploadControl.h"
50 #include "core/rendering/RenderInline.h" 52 #include "core/rendering/RenderInline.h"
51 #include "core/rendering/RenderListItem.h" 53 #include "core/rendering/RenderListItem.h"
52 #include "core/rendering/RenderListMarker.h" 54 #include "core/rendering/RenderListMarker.h"
53 #include "core/rendering/RenderPart.h" 55 #include "core/rendering/RenderPart.h"
54 #include "core/rendering/RenderView.h" 56 #include "core/rendering/RenderView.h"
55 #include "core/rendering/svg/RenderSVGGradientStop.h" 57 #include "core/rendering/svg/RenderSVGGradientStop.h"
56 #include "core/rendering/svg/RenderSVGImage.h"
57 #include "core/rendering/svg/RenderSVGPath.h"
58 #include "core/rendering/svg/RenderSVGRoot.h" 58 #include "core/rendering/svg/RenderSVGRoot.h"
59 #include "wtf/HexNumber.h" 59 #include "wtf/HexNumber.h"
60 #include "wtf/Vector.h" 60 #include "wtf/Vector.h"
61 #include "wtf/unicode/CharacterNames.h" 61 #include "wtf/unicode/CharacterNames.h"
62 62
63 namespace blink { 63 namespace blink {
64 64
65 using namespace HTMLNames; 65 using namespace HTMLNames;
66 66
67 static void printBorderStyle(TextStream& ts, const EBorderStyle borderStyle) 67 static void printBorderStyle(TextStream& ts, const EBorderStyle borderStyle)
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 ts << ": " 426 ts << ": "
427 << quoteAndEscapeNonPrintables(String(o.text()).substring(run.start(), r un.len())); 427 << quoteAndEscapeNonPrintables(String(o.text()).substring(run.start(), r un.len()));
428 if (run.hasHyphen()) 428 if (run.hasHyphen())
429 ts << " + hyphen string " << quoteAndEscapeNonPrintables(o.style()->hyph enString()); 429 ts << " + hyphen string " << quoteAndEscapeNonPrintables(o.style()->hyph enString());
430 ts << "\n"; 430 ts << "\n";
431 } 431 }
432 432
433 void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi or behavior) 433 void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi or behavior)
434 { 434 {
435 if (o.isSVGShape()) { 435 if (o.isSVGShape()) {
436 write(ts, toRenderSVGShape(o), indent); 436 write(ts, toLayoutSVGShape(o), indent);
437 return; 437 return;
438 } 438 }
439 if (o.isSVGGradientStop()) { 439 if (o.isSVGGradientStop()) {
440 writeSVGGradientStop(ts, toRenderSVGGradientStop(o), indent); 440 writeSVGGradientStop(ts, toRenderSVGGradientStop(o), indent);
441 return; 441 return;
442 } 442 }
443 if (o.isSVGResourceContainer()) { 443 if (o.isSVGResourceContainer()) {
444 writeSVGResourceContainer(ts, o, indent); 444 writeSVGResourceContainer(ts, o, indent);
445 return; 445 return;
446 } 446 }
447 if (o.isSVGContainer()) { 447 if (o.isSVGContainer()) {
448 writeSVGContainer(ts, o, indent); 448 writeSVGContainer(ts, o, indent);
449 return; 449 return;
450 } 450 }
451 if (o.isSVGRoot()) { 451 if (o.isSVGRoot()) {
452 write(ts, toRenderSVGRoot(o), indent); 452 write(ts, toRenderSVGRoot(o), indent);
453 return; 453 return;
454 } 454 }
455 if (o.isSVGText()) { 455 if (o.isSVGText()) {
456 writeSVGText(ts, toLayoutSVGText(o), indent); 456 writeSVGText(ts, toLayoutSVGText(o), indent);
457 return; 457 return;
458 } 458 }
459 if (o.isSVGInlineText()) { 459 if (o.isSVGInlineText()) {
460 writeSVGInlineText(ts, toLayoutSVGInlineText(o), indent); 460 writeSVGInlineText(ts, toLayoutSVGInlineText(o), indent);
461 return; 461 return;
462 } 462 }
463 if (o.isSVGImage()) { 463 if (o.isSVGImage()) {
464 writeSVGImage(ts, toRenderSVGImage(o), indent); 464 writeSVGImage(ts, toLayoutSVGImage(o), indent);
465 return; 465 return;
466 } 466 }
467 467
468 writeIndent(ts, indent); 468 writeIndent(ts, indent);
469 469
470 LayoutTreeAsText::writeLayoutObject(ts, o, behavior); 470 LayoutTreeAsText::writeLayoutObject(ts, o, behavior);
471 ts << "\n"; 471 ts << "\n";
472 472
473 if (o.isText() && !o.isBR()) { 473 if (o.isText() && !o.isBR()) {
474 const RenderText& text = toRenderText(o); 474 const RenderText& text = toRenderText(o);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 element->document().updateLayout(); 781 element->document().updateLayout();
782 782
783 LayoutObject* renderer = element->renderer(); 783 LayoutObject* renderer = element->renderer();
784 if (!renderer || !renderer->isListItem()) 784 if (!renderer || !renderer->isListItem())
785 return String(); 785 return String();
786 786
787 return toRenderListItem(renderer)->markerText(); 787 return toRenderListItem(renderer)->markerText();
788 } 788 }
789 789
790 } // namespace blink 790 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/layout/style/SVGLayoutStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698