| 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 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 // its controlClipRect will be wrong. For overflow clip we use the values ca
ched by the layer. | 1987 // its controlClipRect will be wrong. For overflow clip we use the values ca
ched by the layer. |
| 1988 rect.setLocation(topLeft); | 1988 rect.setLocation(topLeft); |
| 1989 if (container->hasOverflowClip()) { | 1989 if (container->hasOverflowClip()) { |
| 1990 LayoutBox* containerBox = toLayoutBox(container); | 1990 LayoutBox* containerBox = toLayoutBox(container); |
| 1991 containerBox->mapScrollingContentsRectToBoxSpace(rect); | 1991 containerBox->mapScrollingContentsRectToBoxSpace(rect); |
| 1992 if (container != ancestor && !containerBox->applyOverflowClip(rect, visu
alRectFlags)) | 1992 if (container != ancestor && !containerBox->applyOverflowClip(rect, visu
alRectFlags)) |
| 1993 return false; | 1993 return false; |
| 1994 } | 1994 } |
| 1995 | 1995 |
| 1996 if (ancestorSkipped) { | 1996 if (ancestorSkipped) { |
| 1997 // If the ancestor is below o, then we need to map the rect into paintIn
validationContainer's coordinates. | 1997 // If the ancestor is below o, then we need to map the rect into ancesto
r's coordinates. |
| 1998 LayoutSize containerOffset = ancestor->offsetFromAncestorContainer(conta
iner); | 1998 LayoutSize containerOffset = ancestor->offsetFromAncestorContainer(conta
iner); |
| 1999 rect.move(-containerOffset); | 1999 rect.move(-containerOffset); |
| 2000 // If the ancestor is fixed, then the rect is already in its coordinates
so doesn't need viewport-adjusting. | 2000 // If the ancestor is fixed, then the rect is already in its coordinates
so doesn't need viewport-adjusting. |
| 2001 if (ancestor->style()->position() != FixedPosition && container->isLayou
tView() && position == FixedPosition) | 2001 if (ancestor->style()->position() != FixedPosition && container->isLayou
tView() && position == FixedPosition) |
| 2002 toLayoutView(container)->adjustOffsetForFixedPosition(rect); | 2002 toLayoutView(container)->adjustOffsetForFixedPosition(rect); |
| 2003 return true; | 2003 return true; |
| 2004 } | 2004 } |
| 2005 | 2005 |
| 2006 if (container->isLayoutView()) | 2006 if (container->isLayoutView()) |
| 2007 return toLayoutView(container)->mapToVisualRectInAncestorSpace(ancestor,
rect, position == FixedPosition ? IsFixed : 0, visualRectFlags); | 2007 return toLayoutView(container)->mapToVisualRectInAncestorSpace(ancestor,
rect, position == FixedPosition ? IsFixed : 0, visualRectFlags); |
| (...skipping 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4703 | 4703 |
| 4704 void LayoutBox::clearPercentHeightDescendants() | 4704 void LayoutBox::clearPercentHeightDescendants() |
| 4705 { | 4705 { |
| 4706 for (LayoutObject* curr = slowFirstChild(); curr; curr = curr->nextInPreOrde
r(this)) { | 4706 for (LayoutObject* curr = slowFirstChild(); curr; curr = curr->nextInPreOrde
r(this)) { |
| 4707 if (curr->isBox()) | 4707 if (curr->isBox()) |
| 4708 toLayoutBox(curr)->removeFromPercentHeightContainer(); | 4708 toLayoutBox(curr)->removeFromPercentHeightContainer(); |
| 4709 } | 4709 } |
| 4710 } | 4710 } |
| 4711 | 4711 |
| 4712 } // namespace blink | 4712 } // namespace blink |
| OLD | NEW |