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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
10 * | 10 * |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 if (!contentBoxRect().contains(localRect)) | 255 if (!contentBoxRect().contains(localRect)) |
256 return false; | 256 return false; |
257 EFillBox backgroundClip = style()->backgroundClip(); | 257 EFillBox backgroundClip = style()->backgroundClip(); |
258 // Background paints under borders. | 258 // Background paints under borders. |
259 if (backgroundClip == BorderFillBox && style()->hasBorder() && !style()->bor
derObscuresBackground()) | 259 if (backgroundClip == BorderFillBox && style()->hasBorder() && !style()->bor
derObscuresBackground()) |
260 return false; | 260 return false; |
261 // Background shows in padding area. | 261 // Background shows in padding area. |
262 if ((backgroundClip == BorderFillBox || backgroundClip == PaddingFillBox) &&
style()->hasPadding()) | 262 if ((backgroundClip == BorderFillBox || backgroundClip == PaddingFillBox) &&
style()->hasPadding()) |
263 return false; | 263 return false; |
264 // Object-position may leave parts of the content box empty, regardless of t
he value of object-fit. | 264 // Object-position may leave parts of the content box empty, regardless of t
he value of object-fit. |
265 if (style()->objectPosition() != LayoutStyle::initialObjectPosition()) | 265 if (style()->objectPosition() != ComputedStyle::initialObjectPosition()) |
266 return false; | 266 return false; |
267 // Object-fit may leave parts of the content box empty. | 267 // Object-fit may leave parts of the content box empty. |
268 ObjectFit objectFit = style()->objectFit(); | 268 ObjectFit objectFit = style()->objectFit(); |
269 if (objectFit != ObjectFitFill && objectFit != ObjectFitCover) | 269 if (objectFit != ObjectFitFill && objectFit != ObjectFitCover) |
270 return false; | 270 return false; |
271 // Check for image with alpha. | 271 // Check for image with alpha. |
272 return m_imageResource->cachedImage() && m_imageResource->cachedImage()->cur
rentFrameKnownToBeOpaque(this); | 272 return m_imageResource->cachedImage() && m_imageResource->cachedImage()->cur
rentFrameKnownToBeOpaque(this); |
273 } | 273 } |
274 | 274 |
275 bool LayoutImage::computeBackgroundIsKnownToBeObscured() | 275 bool LayoutImage::computeBackgroundIsKnownToBeObscured() |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 return 0; | 388 return 0; |
389 | 389 |
390 ImageResource* cachedImage = m_imageResource->cachedImage(); | 390 ImageResource* cachedImage = m_imageResource->cachedImage(); |
391 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage(
)) | 391 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage(
)) |
392 return toSVGImage(cachedImage->image())->embeddedContentBox(); | 392 return toSVGImage(cachedImage->image())->embeddedContentBox(); |
393 | 393 |
394 return 0; | 394 return 0; |
395 } | 395 } |
396 | 396 |
397 } // namespace blink | 397 } // namespace blink |
OLD | NEW |