| 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 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 setShouldDoFullPaintInvalidation(); | 1538 setShouldDoFullPaintInvalidation(); |
| 1539 | 1539 |
| 1540 if (drawingBackground) | 1540 if (drawingBackground) |
| 1541 invalidateBackgroundObscurationStatus(); | 1541 invalidateBackgroundObscurationStatus(); |
| 1542 return true; | 1542 return true; |
| 1543 } | 1543 } |
| 1544 } | 1544 } |
| 1545 return false; | 1545 return false; |
| 1546 } | 1546 } |
| 1547 | 1547 |
| 1548 void LayoutBox::frameRectChanged() |
| 1549 { |
| 1550 if (node() && node()->isElementNode()) { |
| 1551 Element& element = toElement(*node()); |
| 1552 element.sizeMayHaveChanged(); |
| 1553 } |
| 1554 // The frame rect may change because of layout of other objects. |
| 1555 // Should check this object for paint invalidation. |
| 1556 if (!needsLayout()) |
| 1557 setMayNeedPaintInvalidation(); |
| 1558 } |
| 1559 |
| 1548 bool LayoutBox::intersectsVisibleViewport() | 1560 bool LayoutBox::intersectsVisibleViewport() |
| 1549 { | 1561 { |
| 1550 LayoutRect rect = visualOverflowRect(); | 1562 LayoutRect rect = visualOverflowRect(); |
| 1551 LayoutView* layoutView = view(); | 1563 LayoutView* layoutView = view(); |
| 1552 while (layoutView->frame()->ownerLayoutObject()) | 1564 while (layoutView->frame()->ownerLayoutObject()) |
| 1553 layoutView = layoutView->frame()->ownerLayoutObject()->view(); | 1565 layoutView = layoutView->frame()->ownerLayoutObject()->view(); |
| 1554 mapToVisualRectInAncestorSpace(layoutView, rect); | 1566 mapToVisualRectInAncestorSpace(layoutView, rect); |
| 1555 return rect.intersects(LayoutRect(layoutView->frameView()->getScrollableArea
()->visibleContentRectDouble())); | 1567 return rect.intersects(LayoutRect(layoutView->frameView()->getScrollableArea
()->visibleContentRectDouble())); |
| 1556 } | 1568 } |
| 1557 | 1569 |
| (...skipping 3407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4965 m_rareData->m_snapAreas->remove(&snapArea); | 4977 m_rareData->m_snapAreas->remove(&snapArea); |
| 4966 } | 4978 } |
| 4967 } | 4979 } |
| 4968 | 4980 |
| 4969 SnapAreaSet* LayoutBox::snapAreas() const | 4981 SnapAreaSet* LayoutBox::snapAreas() const |
| 4970 { | 4982 { |
| 4971 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; | 4983 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; |
| 4972 } | 4984 } |
| 4973 | 4985 |
| 4974 } // namespace blink | 4986 } // namespace blink |
| OLD | NEW |