Changeset 137217 in webkit for trunk/Source/WebCore/rendering/RenderFrameSet.cpp
- Timestamp:
- Dec 10, 2012, 3:43:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderFrameSet.cpp
r137169 r137217 467 467 bool doFullRepaint = selfNeedsLayout() && checkForRepaintDuringLayout(); 468 468 LayoutRect oldBounds; 469 if (doFullRepaint) 470 oldBounds = absoluteClippedOverflowRect(); 469 RenderLayerModelObject* repaintContainer = 0; 470 if (doFullRepaint) { 471 repaintContainer = containerForRepaint(); 472 oldBounds = clippedOverflowRectForRepaint(repaintContainer); 473 } 471 474 472 475 if (!parent()->isFrameSet() && !document()->printing()) { … … 496 499 computeEdgeInfo(); 497 500 501 updateLayerTransform(); 502 498 503 if (doFullRepaint) { 499 view()->repaintViewRectangle(oldBounds);500 LayoutRect newBounds = absoluteClippedOverflowRect();504 repaintUsingContainer(repaintContainer, pixelSnappedIntRect(oldBounds)); 505 LayoutRect newBounds = clippedOverflowRectForRepaint(repaintContainer); 501 506 if (newBounds != oldBounds) 502 view()->repaintViewRectangle(newBounds); 503 } 504 505 // If this FrameSet has a transform matrix then we need to recompute it 506 // because the transform origin is a function the size of the RenderFrameSet 507 // which may not be computed until it is attached to the render tree. 508 if (layer() && hasTransform()) 509 layer()->updateTransform(); 507 repaintUsingContainer(repaintContainer, pixelSnappedIntRect(newBounds)); 508 } 510 509 511 510 setNeedsLayout(false);
Note:
See TracChangeset
for help on using the changeset viewer.