Remove LayoutFileUploadControl::UpdateFromElement()
* FileInputType::SetValue() |input.value =""| triggered style recalc because style recalc triggered UpdateFromElement(). However, we don't need style recalc in this case and we need to do just paint invalidation. * UpdateFromElement() just does paint invalidation. The function is called from - HTMLFormControlElement::AttachLayoutTree() - HTMLFormControlElement::DidRecalcStyle() For both of them, paint invalidation by UpdateFromElement() is redundant. So we can remove UpdateFromElement(). This CL has no behavior changes. Bug: 1040828 Change-Id: I3e180de69cef7eef20d1944283938deec8de9685 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2006436Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#732784}
Showing
Please register or sign in to comment