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

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

Issue 1743803002: Rename enums/functions that collide in chromium style in core/style/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-8
Patch Set: get-names-9: rebase Created 4 years, 9 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
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Background paints under borders. 233 // Background paints under borders.
234 if (backgroundClip == BorderFillBox && style()->hasBorder() && !style()->bor derObscuresBackground()) 234 if (backgroundClip == BorderFillBox && style()->hasBorder() && !style()->bor derObscuresBackground())
235 return false; 235 return false;
236 // Background shows in padding area. 236 // Background shows in padding area.
237 if ((backgroundClip == BorderFillBox || backgroundClip == PaddingFillBox) && style()->hasPadding()) 237 if ((backgroundClip == BorderFillBox || backgroundClip == PaddingFillBox) && style()->hasPadding())
238 return false; 238 return false;
239 // Object-position may leave parts of the content box empty, regardless of t he value of object-fit. 239 // Object-position may leave parts of the content box empty, regardless of t he value of object-fit.
240 if (style()->objectPosition() != ComputedStyle::initialObjectPosition()) 240 if (style()->objectPosition() != ComputedStyle::initialObjectPosition())
241 return false; 241 return false;
242 // Object-fit may leave parts of the content box empty. 242 // Object-fit may leave parts of the content box empty.
243 ObjectFit objectFit = style()->objectFit(); 243 ObjectFit objectFit = style()->getObjectFit();
244 if (objectFit != ObjectFitFill && objectFit != ObjectFitCover) 244 if (objectFit != ObjectFitFill && objectFit != ObjectFitCover)
245 return false; 245 return false;
246 if (!m_imageResource->cachedImage()) 246 if (!m_imageResource->cachedImage())
247 return false; 247 return false;
248 // Check for image with alpha. 248 // Check for image with alpha.
249 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "PaintImage", " data", InspectorPaintImageEvent::data(this, *m_imageResource->cachedImage())); 249 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "PaintImage", " data", InspectorPaintImageEvent::data(this, *m_imageResource->cachedImage()));
250 return m_imageResource->cachedImage()->image()->currentFrameKnownToBeOpaque( Image::PreCacheMetadata); 250 return m_imageResource->cachedImage()->image()->currentFrameKnownToBeOpaque( Image::PreCacheMetadata);
251 } 251 }
252 252
253 bool LayoutImage::computeBackgroundIsKnownToBeObscured() const 253 bool LayoutImage::computeBackgroundIsKnownToBeObscured() const
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 return nullptr; 318 return nullptr;
319 319
320 ImageResource* cachedImage = m_imageResource->cachedImage(); 320 ImageResource* cachedImage = m_imageResource->cachedImage();
321 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage( )) 321 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage( ))
322 return toSVGImage(cachedImage->image())->embeddedContentBox(); 322 return toSVGImage(cachedImage->image())->embeddedContentBox();
323 323
324 return nullptr; 324 return nullptr;
325 } 325 }
326 326
327 } // namespace blink 327 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698