OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |