| 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 2038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2049 bool LayoutBox::needsForcedBreakBefore(EBreak previousBreakAfterValue) const | 2049 bool LayoutBox::needsForcedBreakBefore(EBreak previousBreakAfterValue) const |
| 2050 { | 2050 { |
| 2051 // Forced break values are only honored when specified on in-flow objects, b
ut floats and | 2051 // Forced break values are only honored when specified on in-flow objects, b
ut floats and |
| 2052 // out-of-flow positioned objects may be affected by a break-after value of
the previous | 2052 // out-of-flow positioned objects may be affected by a break-after value of
the previous |
| 2053 // in-flow object, even though we're not at a class A break point. | 2053 // in-flow object, even though we're not at a class A break point. |
| 2054 EBreak breakValue = isFloatingOrOutOfFlowPositioned() | 2054 EBreak breakValue = isFloatingOrOutOfFlowPositioned() |
| 2055 ? previousBreakAfterValue : classABreakPointValue(previousBreakAfterValu
e); | 2055 ? previousBreakAfterValue : classABreakPointValue(previousBreakAfterValu
e); |
| 2056 return isForcedFragmentainerBreakValue(breakValue); | 2056 return isForcedFragmentainerBreakValue(breakValue); |
| 2057 } | 2057 } |
| 2058 | 2058 |
| 2059 bool LayoutBox::paintedOutputOfObjectHasNoEffect() const | 2059 bool LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const |
| 2060 { | 2060 { |
| 2061 // In case scrollbars got repositioned (which will typically happen if the b
ox got | 2061 // In case scrollbars got repositioned (which will typically happen if the b
ox got |
| 2062 // resized), we cannot skip invalidation. | 2062 // resized), we cannot skip invalidation. |
| 2063 if (hasNonCompositedScrollbars()) | 2063 if (hasNonCompositedScrollbars()) |
| 2064 return false; | 2064 return false; |
| 2065 | 2065 |
| 2066 // Cannot skip paint invalidation if the box has real things to paint. | 2066 // Cannot skip paint invalidation if the box has real things to paint. |
| 2067 if (getSelectionState() != SelectionNone || hasBoxDecorationBackground() ||
styleRef().hasBoxDecorations() || styleRef().hasVisualOverflowingEffect()) | 2067 if (getSelectionState() != SelectionNone || hasBoxDecorationBackground() ||
styleRef().hasBoxDecorations() || styleRef().hasVisualOverflowingEffect()) |
| 2068 return false; | 2068 return false; |
| 2069 | 2069 |
| (...skipping 2760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4830 m_rareData->m_snapAreas->remove(&snapArea); | 4830 m_rareData->m_snapAreas->remove(&snapArea); |
| 4831 } | 4831 } |
| 4832 } | 4832 } |
| 4833 | 4833 |
| 4834 SnapAreaSet* LayoutBox::snapAreas() const | 4834 SnapAreaSet* LayoutBox::snapAreas() const |
| 4835 { | 4835 { |
| 4836 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; | 4836 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; |
| 4837 } | 4837 } |
| 4838 | 4838 |
| 4839 } // namespace blink | 4839 } // namespace blink |
| OLD | NEW |