| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 void LayoutImage::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffs
et) const | 200 void LayoutImage::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffs
et) const |
| 201 { | 201 { |
| 202 ImagePainter(*this).paint(paintInfo, paintOffset); | 202 ImagePainter(*this).paint(paintInfo, paintOffset); |
| 203 } | 203 } |
| 204 | 204 |
| 205 void LayoutImage::areaElementFocusChanged(HTMLAreaElement* areaElement) | 205 void LayoutImage::areaElementFocusChanged(HTMLAreaElement* areaElement) |
| 206 { | 206 { |
| 207 ASSERT(areaElement->imageElement() == node()); | 207 ASSERT(areaElement->imageElement() == node()); |
| 208 | 208 |
| 209 Path path = areaElement->computePath(this); | 209 if (areaElement->getPath(this).isEmpty()) |
| 210 if (path.isEmpty()) | |
| 211 return; | 210 return; |
| 212 | 211 |
| 213 invalidatePaintAndMarkForLayoutIfNeeded(); | 212 invalidatePaintAndMarkForLayoutIfNeeded(); |
| 214 } | 213 } |
| 215 | 214 |
| 216 bool LayoutImage::boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance
bleedAvoidance, const InlineFlowBox*) const | 215 bool LayoutImage::boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance
bleedAvoidance, const InlineFlowBox*) const |
| 217 { | 216 { |
| 218 if (!LayoutBoxModelObject::boxShadowShouldBeAppliedToBackground(bleedAvoidan
ce)) | 217 if (!LayoutBoxModelObject::boxShadowShouldBeAppliedToBackground(bleedAvoidan
ce)) |
| 219 return false; | 218 return false; |
| 220 | 219 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 return nullptr; | 317 return nullptr; |
| 319 | 318 |
| 320 ImageResource* cachedImage = m_imageResource->cachedImage(); | 319 ImageResource* cachedImage = m_imageResource->cachedImage(); |
| 321 if (cachedImage && cachedImage->getImage() && cachedImage->getImage()->isSVG
Image()) | 320 if (cachedImage && cachedImage->getImage() && cachedImage->getImage()->isSVG
Image()) |
| 322 return toSVGImage(cachedImage->getImage())->embeddedReplacedContent(); | 321 return toSVGImage(cachedImage->getImage())->embeddedReplacedContent(); |
| 323 | 322 |
| 324 return nullptr; | 323 return nullptr; |
| 325 } | 324 } |
| 326 | 325 |
| 327 } // namespace blink | 326 } // namespace blink |
| OLD | NEW |