| 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. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 return rect; | 832 return rect; |
| 833 } | 833 } |
| 834 | 834 |
| 835 IntSize LayoutBox::absoluteContentBoxOffset() const { | 835 IntSize LayoutBox::absoluteContentBoxOffset() const { |
| 836 IntPoint offset = roundedIntPoint(contentBoxOffset()); | 836 IntPoint offset = roundedIntPoint(contentBoxOffset()); |
| 837 FloatPoint absPos = localToAbsolute(); | 837 FloatPoint absPos = localToAbsolute(); |
| 838 offset.move(absPos.x(), absPos.y()); | 838 offset.move(absPos.x(), absPos.y()); |
| 839 return toIntSize(offset); | 839 return toIntSize(offset); |
| 840 } | 840 } |
| 841 | 841 |
| 842 FloatQuad LayoutBox::absoluteContentQuad() const { | 842 FloatQuad LayoutBox::absoluteContentQuad(MapCoordinatesFlags flags) const { |
| 843 LayoutRect rect = contentBoxRect(); | 843 LayoutRect rect = contentBoxRect(); |
| 844 return localToAbsoluteQuad(FloatRect(rect)); | 844 return localToAbsoluteQuad(FloatRect(rect), flags); |
| 845 } | 845 } |
| 846 | 846 |
| 847 LayoutRect LayoutBox::backgroundRect(BackgroundRectType rectType) const { | 847 LayoutRect LayoutBox::backgroundRect(BackgroundRectType rectType) const { |
| 848 EFillBox backgroundBox = TextFillBox; | 848 EFillBox backgroundBox = TextFillBox; |
| 849 // Find the largest background rect of the given opaqueness. | 849 // Find the largest background rect of the given opaqueness. |
| 850 if (const FillLayer* current = &(style()->backgroundLayers())) { | 850 if (const FillLayer* current = &(style()->backgroundLayers())) { |
| 851 do { | 851 do { |
| 852 const FillLayer* cur = current; | 852 const FillLayer* cur = current; |
| 853 current = current->next(); | 853 current = current->next(); |
| 854 if (rectType == BackgroundKnownOpaqueRect) { | 854 if (rectType == BackgroundKnownOpaqueRect) { |
| (...skipping 4839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5694 block->adjustChildDebugRect(rect); | 5694 block->adjustChildDebugRect(rect); |
| 5695 | 5695 |
| 5696 return rect; | 5696 return rect; |
| 5697 } | 5697 } |
| 5698 | 5698 |
| 5699 bool LayoutBox::shouldClipOverflow() const { | 5699 bool LayoutBox::shouldClipOverflow() const { |
| 5700 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); | 5700 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); |
| 5701 } | 5701 } |
| 5702 | 5702 |
| 5703 } // namespace blink | 5703 } // namespace blink |
| OLD | NEW |