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

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

Issue 1054423002: Replace layout with updateLayout during dumping LayoutTree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use root->document().updateLayout() Created 5 years, 8 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 | « no previous file | no next file » | 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 continue; 482 continue;
483 write(ts, *child, indent + 1, behavior); 483 write(ts, *child, indent + 1, behavior);
484 } 484 }
485 485
486 if (o.isLayoutPart()) { 486 if (o.isLayoutPart()) {
487 Widget* widget = toLayoutPart(o).widget(); 487 Widget* widget = toLayoutPart(o).widget();
488 if (widget && widget->isFrameView()) { 488 if (widget && widget->isFrameView()) {
489 FrameView* view = toFrameView(widget); 489 FrameView* view = toFrameView(widget);
490 LayoutView* root = view->layoutView(); 490 LayoutView* root = view->layoutView();
491 if (root) { 491 if (root) {
492 view->layout(); 492 root->document().updateLayout();
493 DeprecatedPaintLayer* layer = root->layer(); 493 DeprecatedPaintLayer* layer = root->layer();
494 if (layer) 494 if (layer)
495 LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect( ), indent + 1, behavior); 495 LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect( ), indent + 1, behavior);
496 } 496 }
497 } 497 }
498 } 498 }
499 } 499 }
500 500
501 enum LayerPaintPhase { 501 enum LayerPaintPhase {
502 LayerPaintPhaseAll = 0, 502 LayerPaintPhaseAll = 0,
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 element->document().updateLayout(); 780 element->document().updateLayout();
781 781
782 LayoutObject* renderer = element->layoutObject(); 782 LayoutObject* renderer = element->layoutObject();
783 if (!renderer || !renderer->isListItem()) 783 if (!renderer || !renderer->isListItem())
784 return String(); 784 return String();
785 785
786 return toLayoutListItem(renderer)->markerText(); 786 return toLayoutListItem(renderer)->markerText();
787 } 787 }
788 788
789 } // namespace blink 789 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698