Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/core/layout/LayoutImage.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutGrid.cpp ('k') | Source/core/layout/LayoutInline.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutGrid.cpp ('k') | Source/core/layout/LayoutInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698