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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 } | 652 } |
653 | 653 |
654 void LayoutTreeAsText::writeLayers(TextStream& ts, const PaintLayer* rootLayer,
PaintLayer* layer, | 654 void LayoutTreeAsText::writeLayers(TextStream& ts, const PaintLayer* rootLayer,
PaintLayer* layer, |
655 const LayoutRect& paintRect, int indent, LayoutAsTextBehavior behavior, cons
t PaintLayer* markedLayer) | 655 const LayoutRect& paintRect, int indent, LayoutAsTextBehavior behavior, cons
t PaintLayer* markedLayer) |
656 { | 656 { |
657 // Calculate the clip rects we should use. | 657 // Calculate the clip rects we should use. |
658 LayoutRect layerBounds; | 658 LayoutRect layerBounds; |
659 ClipRect damageRect, clipRectToApply; | 659 ClipRect damageRect, clipRectToApply; |
660 layer->clipper().calculateRects(ClipRectsContext(rootLayer, UncachedClipRect
s), paintRect, layerBounds, damageRect, clipRectToApply); | 660 layer->clipper().calculateRects(ClipRectsContext(rootLayer, UncachedClipRect
s), paintRect, layerBounds, damageRect, clipRectToApply); |
661 | 661 |
662 // Ensure our lists are up-to-date. | 662 // Ensure our lists are up to date. |
663 layer->stackingNode()->updateLayerListsIfNeeded(); | 663 layer->stackingNode()->updateLayerListsIfNeeded(); |
664 | 664 |
665 LayoutPoint offsetFromRoot; | 665 LayoutPoint offsetFromRoot; |
666 layer->convertToLayerCoords(rootLayer, offsetFromRoot); | 666 layer->convertToLayerCoords(rootLayer, offsetFromRoot); |
667 bool shouldPaint = (behavior & LayoutAsTextShowAllLayers) ? true : layer->in
tersectsDamageRect(layerBounds, damageRect.rect(), offsetFromRoot); | 667 bool shouldPaint = (behavior & LayoutAsTextShowAllLayers) ? true : layer->in
tersectsDamageRect(layerBounds, damageRect.rect(), offsetFromRoot); |
668 | 668 |
669 if (layer->layoutObject()->isLayoutPart() && toLayoutPart(layer->layoutObjec
t())->isThrottledFrameView()) | 669 if (layer->layoutObject()->isLayoutPart() && toLayoutPart(layer->layoutObjec
t())->isThrottledFrameView()) |
670 shouldPaint = false; | 670 shouldPaint = false; |
671 | 671 |
672 Vector<PaintLayerStackingNode*>* negList = layer->stackingNode()->negZOrderL
ist(); | 672 Vector<PaintLayerStackingNode*>* negList = layer->stackingNode()->negZOrderL
ist(); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 element->document().updateStyleAndLayout(); | 845 element->document().updateStyleAndLayout(); |
846 | 846 |
847 LayoutObject* layoutObject = element->layoutObject(); | 847 LayoutObject* layoutObject = element->layoutObject(); |
848 if (!layoutObject || !layoutObject->isListItem()) | 848 if (!layoutObject || !layoutObject->isListItem()) |
849 return String(); | 849 return String(); |
850 | 850 |
851 return toLayoutListItem(layoutObject)->markerText(); | 851 return toLayoutListItem(layoutObject)->markerText(); |
852 } | 852 } |
853 | 853 |
854 } // namespace blink | 854 } // namespace blink |
OLD | NEW |