Changeset 277778 in webkit
- Timestamp:
- May 20, 2021 6:21:40 AM (14 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/color/color-input-set-attribute-value-expected.html (added)
-
LayoutTests/fast/forms/color/color-input-set-attribute-value.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/ColorInputType.cpp (modified) (1 diff)
-
Source/WebCore/html/ColorInputType.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r277777 r277778 1 2021-05-20 Aditya Keerthi <akeerthi@apple.com> 2 3 Value of a color input does not update visually when using setAttribute 4 https://bugs.webkit.org/show_bug.cgi?id=166930 5 <rdar://problem/29983218> 6 7 Reviewed by Simon Fraser. 8 9 * fast/forms/color/color-input-set-attribute-value-expected.html: Added. 10 * fast/forms/color/color-input-set-attribute-value.html: Added. 11 1 12 2021-05-20 Felipe Erias <felipeerias@igalia.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r277777 r277778 1 2021-05-20 Aditya Keerthi <akeerthi@apple.com> 2 3 Value of a color input does not update visually when using setAttribute 4 https://bugs.webkit.org/show_bug.cgi?id=166930 5 <rdar://problem/29983218> 6 7 Reviewed by Simon Fraser. 8 9 Test: fast/forms/color/color-input-set-attribute-value.html 10 11 * html/ColorInputType.cpp: 12 (WebCore::ColorInputType::attributeChanged): 13 14 Update the color swatch when the value attribute is changed. 15 16 * html/ColorInputType.h: 17 1 18 2021-05-20 Felipe Erias <felipeerias@igalia.com> 2 19 -
trunk/Source/WebCore/html/ColorInputType.cpp
r272097 r277778 166 166 } 167 167 168 void ColorInputType::attributeChanged(const QualifiedName& name) 169 { 170 if (name == valueAttr) 171 updateColorSwatch(); 172 173 InputType::attributeChanged(name); 174 } 175 168 176 void ColorInputType::handleDOMActivateEvent(Event& event) 169 177 { -
trunk/Source/WebCore/html/ColorInputType.h
r272097 r277778 60 60 void createShadowSubtreeAndUpdateInnerTextElementEditability(ContainerNode::ChildChange::Source, bool) final; 61 61 void setValue(const String&, bool valueChanged, TextFieldEventBehavior) final; 62 void attributeChanged(const QualifiedName&) final; 62 63 void handleDOMActivateEvent(Event&) final; 63 64 void detach() final;
Note: See TracChangeset
for help on using the changeset viewer.