X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-color.cpp;h=4fb95ef08e4046ef92fa2130a0e22d7d8c3b216d;hb=d19410c023c18c050ae226c72c6d79ebf9b0de80;hp=d5fce044fdd88b617222355992c42c9b1ccd4df8;hpb=f91c59cd34c3bc3951661d1b7b7727f4118e095e;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 d5fce04..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,11 +32,6 @@ namespace Toolkit { namespace Text { -namespace -{ -const std::string XHTML_VALUE_ATTRIBUTE("value"); -} - void ProcessColor(const Attribute& attribute, ColorRun& colorRun) { ColorStringToVector4(attribute.valueBuffer, attribute.valueLength, colorRun.color); @@ -49,7 +45,7 @@ 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)) { ProcessColor(attribute, colorRun); }