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
[AT-SPI] Support reading states and tooltips of ToggleButton
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
logical-model-impl.cpp
diff --git
a/dali-toolkit/internal/text/logical-model-impl.cpp
b/dali-toolkit/internal/text/logical-model-impl.cpp
old mode 100644
(file)
new mode 100755
(executable)
index
9b66925
..
3d9440e
--- a/
dali-toolkit/internal/text/logical-model-impl.cpp
+++ b/
dali-toolkit/internal/text/logical-model-impl.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
6
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
9
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-38,12
+38,26
@@
void FreeFontFamilyNames( Vector<FontDescriptionRun>& fontDescriptionRuns )
it != endIt;
++it )
{
it != endIt;
++it )
{
- delete (*it).familyName;
+ delete
[]
(*it).familyName;
}
fontDescriptionRuns.Clear();
}
}
fontDescriptionRuns.Clear();
}
+void FreeEmbeddedItems( Vector<EmbeddedItem>& embeddedItem )
+{
+ for( Vector<EmbeddedItem>::Iterator it = embeddedItem.Begin(),
+ endIt = embeddedItem.End();
+ it != endIt;
+ ++it )
+ {
+ EmbeddedItem& item = *it;
+ delete[] item.url;
+ }
+
+ embeddedItem.Clear();
+}
+
LogicalModelPtr LogicalModel::New()
{
return LogicalModelPtr( new LogicalModel() );
LogicalModelPtr LogicalModel::New()
{
return LogicalModelPtr( new LogicalModel() );
@@
-275,6
+289,14
@@
void LogicalModel::UpdateTextStyleRuns( CharacterIndex index, int numberOfCharac
mColorRuns,
removedColorRuns );
mColorRuns,
removedColorRuns );
+ // Process the background color runs.
+ Vector<ColorRun> removedBackgroundColorRuns;
+ UpdateCharacterRuns<ColorRun>( index,
+ numberOfCharacters,
+ totalNumberOfCharacters,
+ mBackgroundColorRuns,
+ removedBackgroundColorRuns );
+
// Process the font description runs.
Vector<FontDescriptionRun> removedFontDescriptionRuns;
UpdateCharacterRuns<FontDescriptionRun>( index,
// Process the font description runs.
Vector<FontDescriptionRun> removedFontDescriptionRuns;
UpdateCharacterRuns<FontDescriptionRun>( index,
@@
-550,9
+572,15
@@
void LogicalModel::FindParagraphs( CharacterIndex index,
}
}
}
}
+void LogicalModel::ClearEmbeddedImages()
+{
+ FreeEmbeddedItems( mEmbeddedItems );
+}
+
LogicalModel::~LogicalModel()
{
ClearFontDescriptionRuns();
LogicalModel::~LogicalModel()
{
ClearFontDescriptionRuns();
+ ClearEmbeddedImages();
}
LogicalModel::LogicalModel()
}
LogicalModel::LogicalModel()