X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-color.cpp;h=4fb95ef08e4046ef92fa2130a0e22d7d8c3b216d;hb=27b34b7f9c8ba9936ee38db06f22f18fcf04c826;hp=b66e37af1044eab58ea6ed63c15db37c8e152c8a;hpb=c052b6678e2c6d8a65545dbbe4531ea7057c1999;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); } } }