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

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

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/core/layout/LayoutPartTest.cpp ('k') | Source/core/layout/PaintInfo.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 18 matching lines...) Expand all
29 #include "core/HTMLNames.h" 29 #include "core/HTMLNames.h"
30 #include "core/css/StylePropertySet.h" 30 #include "core/css/StylePropertySet.h"
31 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
32 #include "core/dom/PseudoElement.h" 32 #include "core/dom/PseudoElement.h"
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/LayoutPart.h"
39 #include "core/layout/LayoutTableCell.h" 40 #include "core/layout/LayoutTableCell.h"
40 #include "core/layout/compositing/CompositedLayerMapping.h" 41 #include "core/layout/compositing/CompositedLayerMapping.h"
41 #include "core/layout/line/InlineTextBox.h" 42 #include "core/layout/line/InlineTextBox.h"
42 #include "core/layout/svg/LayoutSVGContainer.h" 43 #include "core/layout/svg/LayoutSVGContainer.h"
43 #include "core/layout/svg/LayoutSVGImage.h" 44 #include "core/layout/svg/LayoutSVGImage.h"
44 #include "core/layout/svg/LayoutSVGInlineText.h" 45 #include "core/layout/svg/LayoutSVGInlineText.h"
45 #include "core/layout/svg/LayoutSVGPath.h" 46 #include "core/layout/svg/LayoutSVGPath.h"
46 #include "core/layout/svg/LayoutSVGText.h" 47 #include "core/layout/svg/LayoutSVGText.h"
47 #include "core/layout/svg/SVGLayoutTreeAsText.h" 48 #include "core/layout/svg/SVGLayoutTreeAsText.h"
48 #include "core/page/PrintContext.h" 49 #include "core/page/PrintContext.h"
49 #include "core/rendering/RenderBR.h" 50 #include "core/rendering/RenderBR.h"
50 #include "core/rendering/RenderDetailsMarker.h" 51 #include "core/rendering/RenderDetailsMarker.h"
51 #include "core/rendering/RenderFileUploadControl.h" 52 #include "core/rendering/RenderFileUploadControl.h"
52 #include "core/rendering/RenderInline.h" 53 #include "core/rendering/RenderInline.h"
53 #include "core/rendering/RenderListItem.h" 54 #include "core/rendering/RenderListItem.h"
54 #include "core/rendering/RenderListMarker.h" 55 #include "core/rendering/RenderListMarker.h"
55 #include "core/rendering/RenderPart.h"
56 #include "core/rendering/RenderView.h" 56 #include "core/rendering/RenderView.h"
57 #include "core/rendering/svg/RenderSVGGradientStop.h" 57 #include "core/rendering/svg/RenderSVGGradientStop.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;
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 writeTextRun(ts, text, *box); 477 writeTextRun(ts, text, *box);
478 } 478 }
479 } 479 }
480 480
481 for (LayoutObject* child = o.slowFirstChild(); child; child = child->nextSib ling()) { 481 for (LayoutObject* child = o.slowFirstChild(); child; child = child->nextSib ling()) {
482 if (child->hasLayer()) 482 if (child->hasLayer())
483 continue; 483 continue;
484 write(ts, *child, indent + 1, behavior); 484 write(ts, *child, indent + 1, behavior);
485 } 485 }
486 486
487 if (o.isRenderPart()) { 487 if (o.isLayoutPart()) {
488 Widget* widget = toRenderPart(o).widget(); 488 Widget* widget = toLayoutPart(o).widget();
489 if (widget && widget->isFrameView()) { 489 if (widget && widget->isFrameView()) {
490 FrameView* view = toFrameView(widget); 490 FrameView* view = toFrameView(widget);
491 RenderView* root = view->renderView(); 491 RenderView* root = view->renderView();
492 if (root) { 492 if (root) {
493 view->layout(); 493 view->layout();
494 Layer* layer = root->layer(); 494 Layer* layer = root->layer();
495 if (layer) 495 if (layer)
496 LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect( ), indent + 1, behavior); 496 LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect( ), indent + 1, behavior);
497 } 497 }
498 } 498 }
(...skipping 282 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/layout/LayoutPartTest.cpp ('k') | Source/core/layout/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698