X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-color.cpp;h=4fb95ef08e4046ef92fa2130a0e22d7d8c3b216d;hb=ba1c6fea08ea39ca92356ae4b39a952919398e7e;hp=b66e37af1044eab58ea6ed63c15db37c8e152c8a;hpb=f2039d47f9bed8104575da80a2ecf0bb6e37ff8d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor-color.cpp b/dali-toolkit/internal/text/markup-processor-color.cpp index b66e37a..4fb95ef 100644 --- a/dali-toolkit/internal/text/markup-processor-color.cpp +++ b/dali-toolkit/internal/text/markup-processor-color.cpp @@ -24,6 +24,7 @@ // INTERNAL INCLUDES #include #include +#include namespace Dali { @@ -31,9 +32,9 @@ namespace Toolkit { namespace Text { -namespace +void ProcessColor(const Attribute& attribute, ColorRun& colorRun) { -const std::string XHTML_VALUE_ATTRIBUTE("value"); + ColorStringToVector4(attribute.valueBuffer, attribute.valueLength, colorRun.color); } void ProcessColorTag(const Tag& tag, ColorRun& colorRun) @@ -44,9 +45,9 @@ void ProcessColorTag(const Tag& tag, ColorRun& colorRun) ++it) { const Attribute& attribute(*it); - if(TokenComparison(XHTML_VALUE_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + if(TokenComparison(MARKUP::COLOR_ATTRIBUTES::VALUE, attribute.nameBuffer, attribute.nameLength)) { - ColorStringToVector4(attribute.valueBuffer, attribute.valueLength, colorRun.color); + ProcessColor(attribute, colorRun); } } }