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

Side by Side Diff: Source/core/rendering/RenderBox.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void RenderBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul atedOffset) const 527 void RenderBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul atedOffset) const
528 { 528 {
529 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); 529 rects.append(pixelSnappedIntRect(accumulatedOffset, size()));
530 } 530 }
531 531
532 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const 532 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const
533 { 533 {
534 quads.append(localToAbsoluteQuad(FloatRect(0, 0, width().toFloat(), height() .toFloat()), 0 /* mode */, wasFixed)); 534 quads.append(localToAbsoluteQuad(FloatRect(0, 0, width().toFloat(), height() .toFloat()), 0 /* mode */, wasFixed));
535 } 535 }
536 536
537 void RenderBox::updateLayerTransform() 537 void RenderBox::updateLayerTransformAfterLayout()
538 { 538 {
539 // Transform-origin depends on box size, so we need to update the layer tran sform after layout. 539 // Transform-origin depends on box size, so we need to update the layer tran sform after layout.
540 if (hasLayer()) 540 if (hasLayer())
541 layer()->updateTransform(); 541 layer()->updateTransformationMatrix();
542 } 542 }
543 543
544 LayoutUnit RenderBox::constrainLogicalWidthByMinMax(LayoutUnit logicalWidth, Lay outUnit availableWidth, RenderBlock* cb) const 544 LayoutUnit RenderBox::constrainLogicalWidthByMinMax(LayoutUnit logicalWidth, Lay outUnit availableWidth, RenderBlock* cb) const
545 { 545 {
546 RenderStyle* styleToUse = style(); 546 RenderStyle* styleToUse = style();
547 if (!styleToUse->logicalMaxWidth().isUndefined()) 547 if (!styleToUse->logicalMaxWidth().isUndefined())
548 logicalWidth = min(logicalWidth, computeLogicalWidthUsing(MaxSize, style ToUse->logicalMaxWidth(), availableWidth, cb)); 548 logicalWidth = min(logicalWidth, computeLogicalWidthUsing(MaxSize, style ToUse->logicalMaxWidth(), availableWidth, cb));
549 return max(logicalWidth, computeLogicalWidthUsing(MinSize, styleToUse->logic alMinWidth(), availableWidth, cb)); 549 return max(logicalWidth, computeLogicalWidthUsing(MinSize, styleToUse->logic alMinWidth(), availableWidth, cb));
550 } 550 }
551 551
(...skipping 4133 matching lines...) Expand 10 before | Expand all | Expand 10 after
4685 return 0; 4685 return 0;
4686 4686
4687 if (!layoutState && !flowThreadContainingBlock()) 4687 if (!layoutState && !flowThreadContainingBlock())
4688 return 0; 4688 return 0;
4689 4689
4690 RenderBlock* containerBlock = containingBlock(); 4690 RenderBlock* containerBlock = containingBlock();
4691 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); 4691 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop();
4692 } 4692 }
4693 4693
4694 } // namespace WebCore 4694 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698