Skip to content

Commit

Permalink
Remove input.rawValue experiment
Browse files Browse the repository at this point in the history
I decided to not move forward with this experiment here:
whatwg/html#5257 (comment)

Bug: 1126053
Change-Id: Ic6dd7446f14d38dc5f9f5b9538a9278c88528ef1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2399119
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805053}
GitOrigin-RevId: 153159b0b83f6ef670d2b329e526018043cd430a
  • Loading branch information
josepharhar authored and Copybara-Service committed Sep 8, 2020
1 parent 92d9e98 commit 3409be0
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 31 deletions.
4 changes: 0 additions & 4 deletions blink/renderer/core/html/forms/html_input_element.cc
Expand Up @@ -1112,10 +1112,6 @@ String HTMLInputElement::value() const {
return g_empty_string;
}

String HTMLInputElement::rawValue() const {
return input_type_view_->RawValue();
}

String HTMLInputElement::ValueOrDefaultLabel() const {
String value = this->value();
if (!value.IsNull())
Expand Down
2 changes: 0 additions & 2 deletions blink/renderer/core/html/forms/html_input_element.h
Expand Up @@ -155,8 +155,6 @@ class CORE_EXPORT HTMLInputElement
bool IsValidValue(const String&) const;
bool HasDirtyValue() const;

String rawValue() const;

String SanitizeValue(const String&) const;

String LocalizeValue(const String&) const;
Expand Down
2 changes: 0 additions & 2 deletions blink/renderer/core/html/forms/html_input_element.idl
Expand Up @@ -81,8 +81,6 @@ enum SelectionMode { "select", "start", "end", "preserve" };

readonly attribute NodeList labels;

[RuntimeEnabled=InputElementRawValue] readonly attribute DOMString rawValue;

void select();
[RaisesException, ImplementedAs=selectionStartForBinding] attribute unsigned long? selectionStart;
[RaisesException, ImplementedAs=selectionEndForBinding] attribute unsigned long? selectionEnd;
Expand Down
4 changes: 0 additions & 4 deletions blink/renderer/core/html/forms/input_type_view.cc
Expand Up @@ -212,8 +212,4 @@ void ClickHandlingState::Trace(Visitor* visitor) const {
EventDispatchHandlingState::Trace(visitor);
}

String InputTypeView::RawValue() const {
return g_empty_string;
}

} // namespace blink
1 change: 0 additions & 1 deletion blink/renderer/core/html/forms/input_type_view.h
Expand Up @@ -145,7 +145,6 @@ class CORE_EXPORT InputTypeView : public GarbageCollectedMixin {
// Validation functions
virtual bool HasBadInput() const;

virtual String RawValue() const;
virtual wtf_size_t FocusedFieldIndex() const { return 0; }

protected:
Expand Down
Expand Up @@ -703,10 +703,6 @@ AXObject* MultipleFieldsTemporalInputTypeView::PopupRootAXObject() {
return nullptr;
}

String MultipleFieldsTemporalInputTypeView::RawValue() const {
return GetDateTimeEditElement()->innerText();
}

wtf_size_t MultipleFieldsTemporalInputTypeView::FocusedFieldIndex() const {
return GetDateTimeEditElement()->FocusedFieldIndex();
}
Expand Down
Expand Up @@ -56,8 +56,6 @@ class MultipleFieldsTemporalInputTypeView final
~MultipleFieldsTemporalInputTypeView() override;
void Trace(Visitor*) const override;

String RawValue() const override;

wtf_size_t FocusedFieldIndex() const override;

private:
Expand Down
4 changes: 0 additions & 4 deletions blink/renderer/core/html/forms/text_field_input_type.cc
Expand Up @@ -593,8 +593,4 @@ void TextFieldInputType::SpinButtonDidReleaseMouseCapture(
GetElement().DispatchFormControlChangeEvent();
}

String TextFieldInputType::RawValue() const {
return GetElement().InnerEditorElement()->innerText();
}

} // namespace blink
2 changes: 0 additions & 2 deletions blink/renderer/core/html/forms/text_field_input_type.h
Expand Up @@ -46,8 +46,6 @@ class TextFieldInputType : public InputType,
void Trace(Visitor*) const override;
using InputType::GetElement;

String RawValue() const override;

protected:
TextFieldInputType(HTMLInputElement&);
~TextFieldInputType() override;
Expand Down
4 changes: 0 additions & 4 deletions blink/renderer/platform/runtime_enabled_features.json5
Expand Up @@ -938,10 +938,6 @@
name: "InertAttribute",
status: "experimental",
},
{
name: "InputElementRawValue",
status: "experimental",
},
{
name: "InputMultipleFieldsUI",
// No plan to support complex UI for date/time INPUT types on Android.
Expand Down
Expand Up @@ -732,7 +732,6 @@ html element input
property name
property pattern
property placeholder
property rawValue
property readOnly
property reportValidity
property required
Expand Down
Expand Up @@ -3516,7 +3516,6 @@ interface HTMLInputElement : HTMLElement
getter name
getter pattern
getter placeholder
getter rawValue
getter readOnly
getter required
getter selectionDirection
Expand Down

0 comments on commit 3409be0

Please sign in to comment.