summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGColor.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-11 17:01:47 +0100
committerBen Murdoch <benm@google.com>2009-08-11 18:21:02 +0100
commit0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch)
tree2943df35f62d885c89d01063cc528dd73b480fea /WebCore/svg/SVGColor.cpp
parent7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff)
downloadexternal_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/svg/SVGColor.cpp')
-rw-r--r--WebCore/svg/SVGColor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/svg/SVGColor.cpp b/WebCore/svg/SVGColor.cpp
index 5939b48..f939ef0 100644
--- a/WebCore/svg/SVGColor.cpp
+++ b/WebCore/svg/SVGColor.cpp
@@ -25,6 +25,7 @@
#include "SVGColor.h"
#include "CSSParser.h"
+#include "RGBColor.h"
#include "SVGException.h"
namespace WebCore {
@@ -61,9 +62,9 @@ unsigned short SVGColor::colorType() const
return m_colorType;
}
-unsigned SVGColor::rgbColor() const
+RGBColor* SVGColor::rgbColor() const
{
- return m_color.rgb();
+ return RGBColor::create(m_color.rgb()).releaseRef();
}
void SVGColor::setRGBColor(const String& rgbColor, ExceptionCode& ec)