OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 renderer->setDocumentForAnonymous(document); | 50 renderer->setDocumentForAnonymous(document); |
51 return renderer; | 51 return renderer; |
52 } | 52 } |
53 | 53 |
54 RenderReplica::~RenderReplica() | 54 RenderReplica::~RenderReplica() |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
58 void RenderReplica::layout() | 58 void RenderReplica::layout() |
59 { | 59 { |
| 60 setMayNeedInvalidation(true); |
60 setFrameRect(parentBox()->borderBoxRect()); | 61 setFrameRect(parentBox()->borderBoxRect()); |
61 addVisualOverflow(parentBox()->visualOverflowRect()); | 62 addVisualOverflow(parentBox()->visualOverflowRect()); |
62 updateLayerTransform(); | 63 updateLayerTransform(); |
63 clearNeedsLayout(); | 64 clearNeedsLayout(); |
64 } | 65 } |
65 | 66 |
66 void RenderReplica::computePreferredLogicalWidths() | 67 void RenderReplica::computePreferredLogicalWidths() |
67 { | 68 { |
68 m_minPreferredLogicalWidth = parentBox()->width(); | 69 m_minPreferredLogicalWidth = parentBox()->width(); |
69 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth; | 70 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth; |
(...skipping 14 matching lines...) Expand all Loading... |
84 // computing using the wrong rootLayer | 85 // computing using the wrong rootLayer |
85 RenderLayer* rootPaintingLayer = layer()->transform() ? layer()->parent(
) : layer()->enclosingTransformedAncestor(); | 86 RenderLayer* rootPaintingLayer = layer()->transform() ? layer()->parent(
) : layer()->enclosingTransformedAncestor(); |
86 LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintB
ehaviorNormal, LayoutSize(), 0); | 87 LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintB
ehaviorNormal, LayoutSize(), 0); |
87 PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTr
ansform | PaintLayerTemporaryClipRects | PaintLayerPaintingReflection; | 88 PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTr
ansform | PaintLayerTemporaryClipRects | PaintLayerPaintingReflection; |
88 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); | 89 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); |
89 } else if (paintInfo.phase == PaintPhaseMask) | 90 } else if (paintInfo.phase == PaintPhaseMask) |
90 paintMask(paintInfo, adjustedPaintOffset); | 91 paintMask(paintInfo, adjustedPaintOffset); |
91 } | 92 } |
92 | 93 |
93 } // namespace WebCore | 94 } // namespace WebCore |
OLD | NEW |