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

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

Issue 944923004: rendering/RenderBoxModelObject -> layout/LayoutBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutObject.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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 Path path = areaElement->computePath(this); 210 Path path = areaElement->computePath(this);
211 if (path.isEmpty()) 211 if (path.isEmpty())
212 return; 212 return;
213 213
214 invalidatePaintAndMarkForLayoutIfNeeded(); 214 invalidatePaintAndMarkForLayoutIfNeeded();
215 } 215 }
216 216
217 bool LayoutImage::boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance bleedAvoidance, InlineFlowBox*) const 217 bool LayoutImage::boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance bleedAvoidance, InlineFlowBox*) const
218 { 218 {
219 if (!RenderBoxModelObject::boxShadowShouldBeAppliedToBackground(bleedAvoidan ce)) 219 if (!LayoutBoxModelObject::boxShadowShouldBeAppliedToBackground(bleedAvoidan ce))
220 return false; 220 return false;
221 221
222 return !const_cast<LayoutImage*>(this)->boxDecorationBackgroundIsKnownToBeOb scured(); 222 return !const_cast<LayoutImage*>(this)->boxDecorationBackgroundIsKnownToBeOb scured();
223 } 223 }
224 224
225 bool LayoutImage::foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned) const 225 bool LayoutImage::foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned) const
226 { 226 {
227 if (!m_imageResource->hasImage() || m_imageResource->errorOccurred()) 227 if (!m_imageResource->hasImage() || m_imageResource->errorOccurred())
228 return false; 228 return false;
229 if (m_imageResource->cachedImage() && !m_imageResource->cachedImage()->isLoa ded()) 229 if (m_imageResource->cachedImage() && !m_imageResource->cachedImage()->isLoa ded())
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 return 0; 364 return 0;
365 365
366 ImageResource* cachedImage = m_imageResource->cachedImage(); 366 ImageResource* cachedImage = m_imageResource->cachedImage();
367 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage( )) 367 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage( ))
368 return toSVGImage(cachedImage->image())->embeddedContentBox(); 368 return toSVGImage(cachedImage->image())->embeddedContentBox();
369 369
370 return 0; 370 return 0;
371 } 371 }
372 372
373 } // namespace blink 373 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698