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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |