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

Side by Side Diff: Source/core/rendering/RenderReplica.cpp

Issue 334373002: Clear absolute clip rects when transform changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Split updateTransform into two parts Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 setFrameRect(parentBox()->borderBoxRect()); 60 setFrameRect(parentBox()->borderBoxRect());
61 addVisualOverflow(parentBox()->visualOverflowRect()); 61 addVisualOverflow(parentBox()->visualOverflowRect());
62 updateLayerTransform(); 62 updateLayerTransformAfterLayout();
63 clearNeedsLayout(); 63 clearNeedsLayout();
64 } 64 }
65 65
66 void RenderReplica::computePreferredLogicalWidths() 66 void RenderReplica::computePreferredLogicalWidths()
67 { 67 {
68 m_minPreferredLogicalWidth = parentBox()->width(); 68 m_minPreferredLogicalWidth = parentBox()->width();
69 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth; 69 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth;
70 clearPreferredLogicalWidthsDirty(); 70 clearPreferredLogicalWidthsDirty();
71 } 71 }
72 72
(...skipping 11 matching lines...) Expand all
84 // computing using the wrong rootLayer 84 // computing using the wrong rootLayer
85 RenderLayer* rootPaintingLayer = layer()->transform() ? layer()->parent( ) : layer()->enclosingTransformedAncestor(); 85 RenderLayer* rootPaintingLayer = layer()->transform() ? layer()->parent( ) : layer()->enclosingTransformedAncestor();
86 LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintB ehaviorNormal, LayoutSize(), 0); 86 LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintB ehaviorNormal, LayoutSize(), 0);
87 PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTr ansform | PaintLayerTemporaryClipRects | PaintLayerPaintingReflection; 87 PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTr ansform | PaintLayerTemporaryClipRects | PaintLayerPaintingReflection;
88 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags); 88 layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags);
89 } else if (paintInfo.phase == PaintPhaseMask) 89 } else if (paintInfo.phase == PaintPhaseMask)
90 paintMask(paintInfo, adjustedPaintOffset); 90 paintMask(paintInfo, adjustedPaintOffset);
91 } 91 }
92 92
93 } // namespace WebCore 93 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698