projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add vertical alignment for text editor
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
markup-processor-background.cpp
diff --git
a/dali-toolkit/internal/text/markup-processor-background.cpp
b/dali-toolkit/internal/text/markup-processor-background.cpp
index
8a9910e
..
7f0e8ae
100644
(file)
--- 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 <dali-toolkit/internal/text/color-run.h>
#include <dali-toolkit/internal/text/markup-processor-helper-functions.h>
// INTERNAL INCLUDES
#include <dali-toolkit/internal/text/color-run.h>
#include <dali-toolkit/internal/text/markup-processor-helper-functions.h>
+#include <dali-toolkit/internal/text/markup-tags-and-attributes.h>
namespace Dali
{
namespace Dali
{
@@
-32,16
+33,11
@@
namespace Toolkit
{
namespace Text
{
{
namespace Text
{
-namespace
-{
-const std::string XHTML_COLOR_ATTRIBUTE("color");
-} // namespace
-
void ProcessBackground(const Tag& tag, ColorRun& colorRun)
{
for(auto&& attribute : tag.attributes)
{
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);
}
{
ColorStringToVector4(attribute.valueBuffer, attribute.valueLength, colorRun.color);
}