| 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 bool LayoutBox::paintInvalidationStateIsDirty() const | 1389 bool LayoutBox::paintInvalidationStateIsDirty() const |
| 1390 { | 1390 { |
| 1391 if (ScrollableArea* area = scrollableArea()) { | 1391 if (ScrollableArea* area = scrollableArea()) { |
| 1392 if (area->hasVerticalBarDamage() || area->hasHorizontalBarDamage()) | 1392 if (area->hasVerticalBarDamage() || area->hasHorizontalBarDamage()) |
| 1393 return true; | 1393 return true; |
| 1394 } | 1394 } |
| 1395 return LayoutBoxModelObject::paintInvalidationStateIsDirty(); | 1395 return LayoutBoxModelObject::paintInvalidationStateIsDirty(); |
| 1396 } | 1396 } |
| 1397 #endif | 1397 #endif |
| 1398 | 1398 |
| 1399 LayoutRect LayoutBox::overflowClipRect(const LayoutPoint& location, OverlayScrol
lbarSizeRelevancy relevancy) | 1399 LayoutRect LayoutBox::overflowClipRect(const LayoutPoint& location, OverlayScrol
lbarSizeRelevancy relevancy) const |
| 1400 { | 1400 { |
| 1401 // FIXME: When overflow-clip (CSS3) is implemented, we'll obtain the propert
y | 1401 // FIXME: When overflow-clip (CSS3) is implemented, we'll obtain the propert
y |
| 1402 // here. | 1402 // here. |
| 1403 LayoutRect clipRect = borderBoxRect(); | 1403 LayoutRect clipRect = borderBoxRect(); |
| 1404 clipRect.setLocation(location + clipRect.location() + LayoutSize(borderLeft(
), borderTop())); | 1404 clipRect.setLocation(location + clipRect.location() + LayoutSize(borderLeft(
), borderTop())); |
| 1405 clipRect.setSize(clipRect.size() - LayoutSize(borderLeft() + borderRight(),
borderTop() + borderBottom())); | 1405 clipRect.setSize(clipRect.size() - LayoutSize(borderLeft() + borderRight(),
borderTop() + borderBottom())); |
| 1406 | 1406 |
| 1407 if (!hasOverflowClip()) | 1407 if (!hasOverflowClip()) |
| 1408 return clipRect; | 1408 return clipRect; |
| 1409 | 1409 |
| (...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4748 bool LayoutBox::canRenderBorderImage() const | 4748 bool LayoutBox::canRenderBorderImage() const |
| 4749 { | 4749 { |
| 4750 if (!style()->hasBorderDecoration()) | 4750 if (!style()->hasBorderDecoration()) |
| 4751 return false; | 4751 return false; |
| 4752 | 4752 |
| 4753 StyleImage* borderImage = style()->borderImage().image(); | 4753 StyleImage* borderImage = style()->borderImage().image(); |
| 4754 return borderImage && borderImage->canRender(*this, style()->effectiveZoom()
) && borderImage->isLoaded(); | 4754 return borderImage && borderImage->canRender(*this, style()->effectiveZoom()
) && borderImage->isLoaded(); |
| 4755 } | 4755 } |
| 4756 | 4756 |
| 4757 } // namespace blink | 4757 } // namespace blink |
| OLD | NEW |