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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 | 1468 |
1469 if (allMaskImagesLoaded) { | 1469 if (allMaskImagesLoaded) { |
1470 paintFillLayers(paintInfo, Color::transparent, style()->maskLayers(), pa
intRect, BackgroundBleedNone, compositeOp); | 1470 paintFillLayers(paintInfo, Color::transparent, style()->maskLayers(), pa
intRect, BackgroundBleedNone, compositeOp); |
1471 paintNinePieceImage(paintInfo.context, paintRect, style(), style()->mask
BoxImage(), compositeOp); | 1471 paintNinePieceImage(paintInfo.context, paintRect, style(), style()->mask
BoxImage(), compositeOp); |
1472 } | 1472 } |
1473 | 1473 |
1474 if (pushTransparencyLayer) | 1474 if (pushTransparencyLayer) |
1475 paintInfo.context->endLayer(); | 1475 paintInfo.context->endLayer(); |
1476 } | 1476 } |
1477 | 1477 |
| 1478 bool RenderBox::tryLayoutDoingResizeOnly() |
| 1479 { |
| 1480 LayoutRectRecorder recorder(*this); |
| 1481 LayoutUnit oldLogicalWidth = logicalWidth(); |
| 1482 updateLogicalWidth(); |
| 1483 // If logical width changed, we still need full layout. |
| 1484 if (oldLogicalWidth != logicalWidth()) |
| 1485 return false; |
| 1486 updateLogicalHeight(); |
| 1487 return true; |
| 1488 } |
| 1489 |
1478 LayoutRect RenderBox::maskClipRect() | 1490 LayoutRect RenderBox::maskClipRect() |
1479 { | 1491 { |
1480 const NinePieceImage& maskBoxImage = style()->maskBoxImage(); | 1492 const NinePieceImage& maskBoxImage = style()->maskBoxImage(); |
1481 if (maskBoxImage.image()) { | 1493 if (maskBoxImage.image()) { |
1482 LayoutRect borderImageRect = borderBoxRect(); | 1494 LayoutRect borderImageRect = borderBoxRect(); |
1483 | 1495 |
1484 // Apply outsets to the border box. | 1496 // Apply outsets to the border box. |
1485 borderImageRect.expand(style()->maskBoxImageOutsets()); | 1497 borderImageRect.expand(style()->maskBoxImageOutsets()); |
1486 return borderImageRect; | 1498 return borderImageRect; |
1487 } | 1499 } |
(...skipping 3202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4690 return 0; | 4702 return 0; |
4691 | 4703 |
4692 if (!layoutState && !flowThreadContainingBlock()) | 4704 if (!layoutState && !flowThreadContainingBlock()) |
4693 return 0; | 4705 return 0; |
4694 | 4706 |
4695 RenderBlock* containerBlock = containingBlock(); | 4707 RenderBlock* containerBlock = containingBlock(); |
4696 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); | 4708 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); |
4697 } | 4709 } |
4698 | 4710 |
4699 } // namespace WebCore | 4711 } // namespace WebCore |
OLD | NEW |