Use HashMap<OwnPtr> in RenderSVGResourceGradient
authorcaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jan 2012 14:07:53 +0000 (14:07 +0000)
committercaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jan 2012 14:07:53 +0000 (14:07 +0000)
commitb8d74eba1bad504b516b122eebc19ba6262d5962
tree30cbaa81de0efe7167d9105ee35b82daf6b47e1c
parent6a293a49f19f6e7007f9ede40b38cad3a0ecfb74
Use HashMap<OwnPtr> in RenderSVGResourceGradient
https://bugs.webkit.org/show_bug.cgi?id=75364

Reviewed by Daniel Bates.

* rendering/svg/RenderSVGResourceGradient.cpp:
(WebCore::RenderSVGResourceGradient::removeAllClientsFromCache):
(WebCore::RenderSVGResourceGradient::removeClientFromCache):
(WebCore::RenderSVGResourceGradient::applyResource): avoid looking
up the hash twice by using HashMap::add().
* rendering/svg/RenderSVGResourceGradient.h: rename m_gradient to m_gradientMap.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
Source/WebCore/rendering/svg/RenderSVGResourceGradient.h