Commit ae0dd321 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Enable LayoutNG for input[type=image]

It has no reasons to use the legacy layout.

Bug: 1040826
Change-Id: I2adf8160551d5ec5fa77d506b1e8d930bff43416
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2299659
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#788551}
parent 84aee2f7
...@@ -105,10 +105,6 @@ void ImageInputType::HandleDOMActivateEvent(Event& event) { ...@@ -105,10 +105,6 @@ void ImageInputType::HandleDOMActivateEvent(Event& event) {
event.SetDefaultHandled(); event.SetDefaultHandled();
} }
bool ImageInputType::TypeShouldForceLegacyLayout() const {
return true;
}
LayoutObject* ImageInputType::CreateLayoutObject(const ComputedStyle& style, LayoutObject* ImageInputType::CreateLayoutObject(const ComputedStyle& style,
LegacyLayout legacy) const { LegacyLayout legacy) const {
if (use_fallback_content_) { if (use_fallback_content_) {
......
...@@ -50,7 +50,6 @@ class ImageInputType final : public BaseButtonInputType { ...@@ -50,7 +50,6 @@ class ImageInputType final : public BaseButtonInputType {
void AppendToFormData(FormData&) const override; void AppendToFormData(FormData&) const override;
String ResultForDialogSubmit() const override; String ResultForDialogSubmit() const override;
bool SupportsValidation() const override; bool SupportsValidation() const override;
bool TypeShouldForceLegacyLayout() const override;
LayoutObject* CreateLayoutObject(const ComputedStyle&, LayoutObject* CreateLayoutObject(const ComputedStyle&,
LegacyLayout) const override; LegacyLayout) const override;
void HandleDOMActivateEvent(Event&) override; void HandleDOMActivateEvent(Event&) override;
......
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