| Index: ui/gfx/render_text.cc
|
| diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
|
| index 9b172088ef28f24a54487eea6dc20b58634fba4c..c7871ee7a05ed4e1da574e2d6ffb1d6ca03e147a 100644
|
| --- a/ui/gfx/render_text.cc
|
| +++ b/ui/gfx/render_text.cc
|
| @@ -762,7 +762,7 @@ void RenderText::Draw(Canvas* canvas) {
|
|
|
| if (clip_to_display_rect()) {
|
| Rect clip_rect(display_rect());
|
| - clip_rect.Inset(ShadowValue::GetMargin(text_shadows_));
|
| + clip_rect.Inset(ShadowValue::GetMargin(shadows_));
|
|
|
| canvas->Save();
|
| canvas->ClipRect(clip_rect);
|
| @@ -873,10 +873,6 @@ SelectionModel RenderText::GetSelectionModelForSelectionStart() {
|
| sel.is_reversed() ? CURSOR_BACKWARD : CURSOR_FORWARD);
|
| }
|
|
|
| -void RenderText::SetTextShadows(const ShadowValues& shadows) {
|
| - text_shadows_ = shadows;
|
| -}
|
| -
|
| RenderText::RenderText()
|
| : horizontal_alignment_(base::i18n::IsRTL() ? ALIGN_RIGHT : ALIGN_LEFT),
|
| directionality_mode_(DIRECTIONALITY_FROM_TEXT),
|
| @@ -1110,7 +1106,7 @@ void RenderText::ApplyFadeEffects(internal::SkiaTextRenderer* renderer) {
|
| }
|
|
|
| void RenderText::ApplyTextShadows(internal::SkiaTextRenderer* renderer) {
|
| - skia::RefPtr<SkDrawLooper> looper = CreateShadowDrawLooper(text_shadows_);
|
| + skia::RefPtr<SkDrawLooper> looper = CreateShadowDrawLooper(shadows_);
|
| renderer->SetDrawLooper(looper.get());
|
| }
|
|
|
|
|