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

Unified Diff: Source/core/css/CSSCursorImageValue.cpp

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/CSSCursorImageValue.cpp
diff --git a/Source/core/css/CSSCursorImageValue.cpp b/Source/core/css/CSSCursorImageValue.cpp
index a9f27c268ba9deb7c23d6af397d2545ca623023d..032971a8e601d01052f2468333e526948f38c896 100644
--- a/Source/core/css/CSSCursorImageValue.cpp
+++ b/Source/core/css/CSSCursorImageValue.cpp
@@ -102,13 +102,13 @@ bool CSSCursorImageValue::updateIfSVGCursorIsUsed(Element* element)
// FIXME: This will override hot spot specified in CSS, which is probably incorrect.
SVGLengthContext lengthContext(0);
m_hasHotSpot = true;
- float x = roundf(cursorElement->x().value(lengthContext));
+ float x = roundf(cursorElement->xCurrentValue().value(lengthContext));
m_hotSpot.setX(static_cast<int>(x));
- float y = roundf(cursorElement->y().value(lengthContext));
+ float y = roundf(cursorElement->yCurrentValue().value(lengthContext));
m_hotSpot.setY(static_cast<int>(y));
- if (cachedImageURL() != element->document()->completeURL(cursorElement->href()))
+ if (cachedImageURL() != element->document()->completeURL(cursorElement->hrefCurrentValue()))
clearCachedImage();
SVGElement* svgElement = toSVGElement(element);
@@ -136,7 +136,7 @@ StyleImage* CSSCursorImageValue::cachedImage(CachedResourceLoader* loader, float
RefPtr<CSSImageValue> imageValue = toCSSImageValue(m_imageValue.get());
// FIXME: This will fail if the <cursor> element is in a shadow DOM (bug 59827)
if (SVGCursorElement* cursorElement = resourceReferencedByCursorElement(imageValue->url(), loader->document())) {
- RefPtr<CSSImageValue> svgImageValue = CSSImageValue::create(cursorElement->href());
+ RefPtr<CSSImageValue> svgImageValue = CSSImageValue::create(cursorElement->hrefCurrentValue());
StyleCachedImage* cachedImage = svgImageValue->cachedImage(loader);
m_image = cachedImage;
return cachedImage;

Powered by Google App Engine
This is Rietveld 408576698