summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc b/chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc
index 0c6689925fc..4811074eef4 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc
+++ b/chromium/third_party/blink/renderer/core/layout/layout_text_control_single_line.cc
@@ -129,8 +129,10 @@ void LayoutTextControlSingleLine::UpdateLayout() {
// The placeholder gets layout last, after the parent text control and its
// other children, so in order to get the correct overflow from the
// placeholder we need to recompute it now.
- if (needed_layout)
- ComputeOverflow(ClientLogicalBottom());
+ if (needed_layout) {
+ SetNeedsOverflowRecalc();
+ ComputeLayoutOverflow(ClientLogicalBottom());
+ }
}
}
@@ -317,8 +319,9 @@ HTMLInputElement* LayoutTextControlSingleLine::InputElement() const {
}
void LayoutTextControlSingleLine::ComputeVisualOverflow(
- const LayoutRect& previous_visual_overflow_rect,
bool recompute_floats) {
+ LayoutRect previous_visual_overflow_rect = VisualOverflowRect();
+ ClearVisualOverflow();
AddVisualOverflowFromChildren();
AddVisualEffectOverflow();
@@ -329,8 +332,7 @@ void LayoutTextControlSingleLine::ComputeVisualOverflow(
AddVisualOverflowFromFloats();
if (VisualOverflowRect() != previous_visual_overflow_rect) {
- if (Layer())
- Layer()->SetNeedsCompositingInputsUpdate();
+ SetShouldCheckForPaintInvalidation();
GetFrameView()->SetIntersectionObservationState(LocalFrameView::kDesired);
}
}