Commit 968a5c50 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

No need for UpdatePlaceholderVisibility on style change.

Calling UpdatePlaceholderVisibility on StyleDidChange makes us mark
style dirty in the middle of a layout tree rebuild.

Bug: 868810
Change-Id: I070e9fd576e21768099297767f2eddaaf401068c
Reviewed-on: https://chromium-review.googlesource.com/1205150Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588777}
parent c2749488
...@@ -67,7 +67,6 @@ void LayoutTextControl::StyleDidChange(StyleDifference diff, ...@@ -67,7 +67,6 @@ void LayoutTextControl::StyleDidChange(StyleDifference diff,
inner_editor_layout_object->InvalidateSelectedChildrenOnStyleChange(); inner_editor_layout_object->InvalidateSelectedChildrenOnStyleChange();
} }
} }
GetTextControlElement()->UpdatePlaceholderVisibility();
} }
int LayoutTextControl::TextBlockLogicalHeight() const { int LayoutTextControl::TextBlockLogicalHeight() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment