X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-background.cpp;h=7f0e8ae3c5bc41089fa35bf6b413fe23179ddd35;hp=8a9910e59138f8eedaa4efe934cfc5cdfffcd529;hb=8e129c82c96ccd93fa92d64cc1deddfe6eb3cfbb;hpb=862dfd28532f834238394c7ec0a15069c9bd2188 diff --git a/dali-toolkit/internal/text/markup-processor-background.cpp b/dali-toolkit/internal/text/markup-processor-background.cpp index 8a9910e..7f0e8ae 100644 --- a/dali-toolkit/internal/text/markup-processor-background.cpp +++ b/dali-toolkit/internal/text/markup-processor-background.cpp @@ -25,6 +25,7 @@ // INTERNAL INCLUDES #include #include +#include namespace Dali { @@ -32,16 +33,11 @@ namespace Toolkit { namespace Text { -namespace -{ -const std::string XHTML_COLOR_ATTRIBUTE("color"); -} // namespace - void ProcessBackground(const Tag& tag, ColorRun& colorRun) { for(auto&& attribute : tag.attributes) { - if(TokenComparison(XHTML_COLOR_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + if(TokenComparison(MARKUP::BACKGROUND_ATTRIBUTES::COLOR, attribute.nameBuffer, attribute.nameLength)) { ColorStringToVector4(attribute.valueBuffer, attribute.valueLength, colorRun.color); }