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

Side by Side Diff: Source/core/rendering/RenderImage.cpp

Issue 711163002: Don't anti-alias backgrounds of images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/rendering/RenderImage.h ('k') | no next file » | 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf fset) 273 void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf fset)
274 { 274 {
275 ImagePainter(*this).paintReplaced(paintInfo, paintOffset); 275 ImagePainter(*this).paintReplaced(paintInfo, paintOffset);
276 } 276 }
277 277
278 void RenderImage::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 278 void RenderImage::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
279 { 279 {
280 ImagePainter(*this).paint(paintInfo, paintOffset); 280 ImagePainter(*this).paint(paintInfo, paintOffset);
281 } 281 }
282 282
283 void RenderImage::paintBoxDecorationBackground(PaintInfo& paintInfo, const Layou tPoint& paintOffset)
284 {
285 ImagePainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset);
286 }
287
283 void RenderImage::areaElementFocusChanged(HTMLAreaElement* areaElement) 288 void RenderImage::areaElementFocusChanged(HTMLAreaElement* areaElement)
284 { 289 {
285 ASSERT(areaElement->imageElement() == node()); 290 ASSERT(areaElement->imageElement() == node());
286 291
287 Path path = areaElement->computePath(this); 292 Path path = areaElement->computePath(this);
288 if (path.isEmpty()) 293 if (path.isEmpty())
289 return; 294 return;
290 295
291 RenderStyle* areaElementStyle = areaElement->computedStyle(); 296 RenderStyle* areaElementStyle = areaElement->computedStyle();
292 unsigned short outlineWidth = areaElementStyle->outlineWidth(); 297 unsigned short outlineWidth = areaElementStyle->outlineWidth();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 return 0; 464 return 0;
460 465
461 ImageResource* cachedImage = m_imageResource->cachedImage(); 466 ImageResource* cachedImage = m_imageResource->cachedImage();
462 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage( )) 467 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage( ))
463 return toSVGImage(cachedImage->image())->embeddedContentBox(); 468 return toSVGImage(cachedImage->image())->embeddedContentBox();
464 469
465 return 0; 470 return 0;
466 } 471 }
467 472
468 } // namespace blink 473 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderImage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698