| 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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 for (const FillLayer* curLayer = &layers; curLayer; curLayer = curLayer->nex
t()) { | 1389 for (const FillLayer* curLayer = &layers; curLayer; curLayer = curLayer->nex
t()) { |
| 1390 if (curLayer->image() && image == curLayer->image()->data() && curLayer-
>image()->canRender(*this, style()->effectiveZoom())) { | 1390 if (curLayer->image() && image == curLayer->image()->data() && curLayer-
>image()->canRender(*this, style()->effectiveZoom())) { |
| 1391 for (LayoutObject* layerRenderer : layerRenderers) | 1391 for (LayoutObject* layerRenderer : layerRenderers) |
| 1392 layerRenderer->setShouldDoFullPaintInvalidation(); | 1392 layerRenderer->setShouldDoFullPaintInvalidation(); |
| 1393 return true; | 1393 return true; |
| 1394 } | 1394 } |
| 1395 } | 1395 } |
| 1396 return false; | 1396 return false; |
| 1397 } | 1397 } |
| 1398 | 1398 |
| 1399 PaintInvalidationReason LayoutBox::invalidatePaintIfNeeded(const PaintInvalidati
onState& paintInvalidationState, const LayoutBoxModelObject& newPaintInvalidatio
nContainer) | 1399 PaintInvalidationReason LayoutBox::invalidatePaintIfNeeded(PaintInvalidationStat
e& paintInvalidationState, const LayoutBoxModelObject& newPaintInvalidationConta
iner) |
| 1400 { | 1400 { |
| 1401 PaintInvalidationReason reason = LayoutBoxModelObject::invalidatePaintIfNeed
ed(paintInvalidationState, newPaintInvalidationContainer); | 1401 PaintInvalidationReason reason = LayoutBoxModelObject::invalidatePaintIfNeed
ed(paintInvalidationState, newPaintInvalidationContainer); |
| 1402 | 1402 |
| 1403 // If we are set to do a full paint invalidation that means the LayoutView w
ill be | 1403 // If we are set to do a full paint invalidation that means the LayoutView w
ill be |
| 1404 // issue paint invalidations. We can then skip issuing of paint invalidation
s for the child | 1404 // issue paint invalidations. We can then skip issuing of paint invalidation
s for the child |
| 1405 // renderers as they'll be covered by the LayoutView. | 1405 // renderers as they'll be covered by the LayoutView. |
| 1406 if (!view()->doingFullPaintInvalidation() && !isFullPaintInvalidationReason(
reason)) { | 1406 if (!view()->doingFullPaintInvalidation() && !isFullPaintInvalidationReason(
reason)) { |
| 1407 invalidatePaintForOverflowIfNeeded(); | 1407 invalidatePaintForOverflowIfNeeded(); |
| 1408 | 1408 |
| 1409 // Issue paint invalidations for any scrollbars if there is a scrollable
area for this renderer. | 1409 // Issue paint invalidations for any scrollbars if there is a scrollable
area for this renderer. |
| (...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4641 computedValues.m_margins.m_end = marginEnd(); | 4641 computedValues.m_margins.m_end = marginEnd(); |
| 4642 | 4642 |
| 4643 setLogicalTop(oldLogicalTop); | 4643 setLogicalTop(oldLogicalTop); |
| 4644 setLogicalWidth(oldLogicalWidth); | 4644 setLogicalWidth(oldLogicalWidth); |
| 4645 setLogicalLeft(oldLogicalLeft); | 4645 setLogicalLeft(oldLogicalLeft); |
| 4646 setMarginLeft(oldMarginLeft); | 4646 setMarginLeft(oldMarginLeft); |
| 4647 setMarginRight(oldMarginRight); | 4647 setMarginRight(oldMarginRight); |
| 4648 } | 4648 } |
| 4649 | 4649 |
| 4650 } // namespace blink | 4650 } // namespace blink |
| OLD | NEW |