Text - Stop destroying the text renderer when text decoration is updated. 50/78450/3
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 5 Jul 2016 12:42:37 +0000 (13:42 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Tue, 5 Jul 2016 15:44:31 +0000 (16:44 +0100)
commit7dcd34602d12e17c0fb64cbc0560925878ed87d7
tree03432dc07cd57fc49ca1206fc34f76861ca6cece
parent283c6129b00dfdbc1badbf809b4257784820bb30
Text - Stop destroying the text renderer when text decoration is updated.

  Currently the text renderer is destroyed every time the text or
the decoration is updated.

  This patch changes the Text::Controller::Relayout() method to return
and enum type. The text controls can avoid the destruction of the text
renderer if the text model is not updated.

Change-Id: Ie0ccbc7e1c7e64dba778059c12bd7a6625de53cc
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextField.cpp
dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-editor-impl.h
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
dali-toolkit/internal/controls/text-controls/text-field-impl.h
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
dali-toolkit/internal/text/text-controller.cpp
dali-toolkit/internal/text/text-controller.h