[Webkit-unassigned] [Bug 58730] currentColor not supported in CSS gradients
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 16 17:01:27 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=58730
--- Comment #4 from Simon Fraser (smfr) <simon.fraser at apple.com> 2011-05-16 17:01:27 PST ---
(From update of attachment 93714)
View in context: https://bugs.webkit.org/attachment.cgi?id=93714&action=review
> Source/WebCore/css/CSSGradientValue.cpp:159
> - stops[i].color = renderer->document()->styleSelector()->getColorFromPrimitiveValue(stop.m_color.get());
> + CSSPrimitiveValue* color = stop.m_color.get();
> + if (color->getIdent() == CSSValueCurrentcolor)
> + stops[i].color = style->visitedDependentColor(CSSPropertyColor);
> + else
> + stops[i].color = renderer->document()->styleSelector()->getColorFromPrimitiveValue(color);
I still don't get this part. getColorFromPrimitiveValue() handles currentCOlor already.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list