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

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

Issue 1912863002: Fix image map focus ring painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
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().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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698