Changeset 248373 in webkit
- Timestamp:
- Aug 7, 2019, 10:24:19 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 27 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset.html (added)
-
LayoutTests/fast/forms/auto-fill-button/input-strong-password-viewable.html (added)
-
LayoutTests/fast/forms/auto-fill-button/resources/process-auto-fill-button-type-and-invoke-runTest.js (modified) (1 diff)
-
LayoutTests/platform/gtk/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset-expected.txt (added)
-
LayoutTests/platform/ios-simulator/fast/forms/auto-fill-button/input-strong-password-viewable-expected.txt (added)
-
LayoutTests/platform/mac/fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset-expected.png (added)
-
LayoutTests/platform/mac/fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset-expected.txt (added)
-
LayoutTests/platform/mac/fast/forms/auto-fill-button/input-strong-password-viewable-expected.png (added)
-
LayoutTests/platform/mac/fast/forms/auto-fill-button/input-strong-password-viewable-expected.txt (added)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSSelector.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSSelector.h (modified) (1 diff)
-
Source/WebCore/css/SelectorChecker.cpp (modified) (1 diff)
-
Source/WebCore/css/SelectorCheckerTestFunctions.h (modified) (1 diff)
-
Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in (modified) (1 diff)
-
Source/WebCore/css/html.css (modified) (1 diff)
-
Source/WebCore/cssjit/SelectorCompiler.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.cpp (modified) (4 diffs)
-
Source/WebCore/html/HTMLInputElement.h (modified) (2 diffs)
-
Source/WebCore/testing/Internals.cpp (modified) (1 diff)
-
Source/WebCore/testing/Internals.h (modified) (1 diff)
-
Source/WebCore/testing/Internals.idl (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp (modified) (2 diffs)
-
Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h (modified) (1 diff)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/DOM/WebDOMOperations.mm (modified) (1 diff)
-
Source/WebKitLegacy/mac/DOM/WebDOMOperationsPrivate.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r248368 r248373 1 2019-08-07 Priyanka Agarwal <pagarwal999@apple.com> 2 3 Allow clients to toggle a text input field between being viewable and having characters hidden while maintaining 4 a yellow auto-filled appearance 5 https://bugs.webkit.org/show_bug.cgi?id=200037 6 rdar://problem/51900961 7 8 Reviewed by Daniel Bates. 9 10 * fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset.html: Added. 11 Test for when the form is reset to no longer be autofilled. 12 13 * fast/forms/auto-fill-button/input-strong-password-viewable.html: Added. 14 Test for when the form is set to being autofilled and viewable. 15 16 * fast/forms/auto-fill-button/resources/process-auto-fill-button-type-and-invoke-runTest.js: 17 (window.onload): Javascript used by test to set the element to be autofilled and viewable added 18 19 * platform/mac/fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset-expected.txt: Added. 20 * platform/mac/fast/forms/auto-fill-button/input-strong-password-viewable-expected.txt: 21 1 22 2019-08-07 Wenson Hsieh <wenson_hsieh@apple.com> 2 23 -
trunk/LayoutTests/fast/forms/auto-fill-button/resources/process-auto-fill-button-type-and-invoke-runTest.js
r231517 r248373 8 8 for (let inputElement of inputElements) { 9 9 internals.setAutofilled(inputElement, inputElement.dataset.autofilled == "true"); 10 internals.setAutoFilledAndViewable(inputElement, inputElement.dataset.autoFilledAndViewable == "true"); 10 11 internals.setShowAutoFillButton(inputElement, inputElement.dataset.autoFillButtonType); 11 12 } -
trunk/LayoutTests/platform/gtk/TestExpectations
r248150 r248373 3400 3400 3401 3401 webkit.org/b/181662 fast/forms/auto-fill-button/input-strong-password-auto-fill-button.html [ Missing Failure ] 3402 webkit.org/b/200037 fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset.html [ Missing Failure ] 3403 webkit.org/b/200037 fast/forms/auto-fill-button/input-strong-password-viewable.html [ Missing Failure ] 3402 3404 3403 3405 webkit.org/b/182050 http/wpt/fetch/response-opaque-clone.html [ Pass Crash ] -
trunk/LayoutTests/platform/win/TestExpectations
r248285 r248373 3931 3931 3932 3932 webkit.org/b/181662 fast/forms/auto-fill-button/input-strong-password-auto-fill-button.html [ Failure ] 3933 webkit.org/b/200037 fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset.html [ Missing Failure ] 3934 webkit.org/b/200037 fast/forms/auto-fill-button/input-strong-password-viewable.html [ Missing Failure ] 3933 3935 3934 3936 webkit.org/b/181854 svg/filters/feDiffuseLighting-bottomRightPixel.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r248370 r248373 1 2019-08-07 Priyanka Agarwal <pagarwal999@apple.com> 2 3 Allow clients to toggle a text input field between being viewable and having characters hidden while maintaining 4 a yellow auto-filled appearance 5 https://bugs.webkit.org/show_bug.cgi?id=200037 6 rdar://problem/51900961 7 8 Reviewed by Daniel Bates. 9 10 Tests: fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset.html 11 fast/forms/auto-fill-button/input-strong-password-viewable.html 12 13 * css/CSSSelector.cpp: 14 (WebCore::CSSSelector::selectorText const): 15 Adding CSSSelector case for new pseudo class of AutofillStrongPasswordViewable. 16 17 * css/CSSSelector.h: Added PseudoClassAutofillStrongPasswordViewable 18 19 * css/SelectorChecker.cpp: 20 (WebCore::SelectorChecker::checkOne const): Added handling for SelectorChecker.cpp 21 22 * css/SelectorCheckerTestFunctions.h: 23 (WebCore::isAutofilledStrongPasswordViewable): 24 Checking if the element is an input element and considered to be 25 AutoFilled and Viewable. Returns a boolean accordingly. 26 27 * css/SelectorPseudoClassAndCompatibilityElementMap.in: 28 Add -webkit-autofill-strong-password-viewable css class. 29 30 * css/html.css: 31 (input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable): 32 (input:-webkit-autofill-strong-password-viewable): 33 (input:-webkit-autofill, input:-webkit-autofill-strong-password): Deleted. Updated to include viewable pseudo class. 34 35 * cssjit/SelectorCompiler.cpp: 36 (WebCore::SelectorCompiler::addPseudoClassType): 37 Add case handling for PseudoClassAutofillStrongPasswordViewable. 38 39 * html/HTMLInputElement.cpp: 40 (WebCore::HTMLInputElement::HTMLInputElement): 41 Add boolean m_isAutoFilledAndViewable for representing if the 42 input element is both AutoFilled and should be viewable. 43 Don't update the viewable treatment in setValueFromRenderer() because even if the user makes edits to the input field 44 the visual treatment should still be applied. 45 46 (WebCore::HTMLInputElement::resignStrongPasswordAppearance): 47 Updates boolean representing if input element is autofilled and viewable to false. 48 49 (WebCore::HTMLInputElement::reset): 50 Updates boolean representing if input element is autofilled and viewable to false. 51 52 (WebCore::HTMLInputElement::setAutoFilledAndViewable): 53 Setter function for the boolean of m_isAutoFilledAndViewable. 54 55 * html/HTMLInputElement.h: 56 (WebCore::HTMLInputElement::isAutoFilledAndViewable const): 57 Creating boolean value for m_isAutoFilledAndViewable. 58 59 * testing/Internals.cpp: 60 (WebCore::Internals::setAutoFilledAndViewable): Adding for testing purposes. 61 * testing/Internals.h: Adding for testing purposes. 62 * testing/Internals.idl: 63 1 64 2019-08-07 Wenson Hsieh <wenson_hsieh@apple.com> 2 65 -
trunk/Source/WebCore/css/CSSSelector.cpp
r246951 r248373 431 431 str.appendLiteral(":-webkit-autofill-strong-password"); 432 432 break; 433 case CSSSelector::PseudoClassAutofillStrongPasswordViewable: 434 str.appendLiteral(":-webkit-autofill-strong-password-viewable"); 435 break; 433 436 case CSSSelector::PseudoClassDrag: 434 437 str.appendLiteral(":-webkit-drag"); -
trunk/Source/WebCore/css/CSSSelector.h
r246951 r248373 109 109 PseudoClassAutofill, 110 110 PseudoClassAutofillStrongPassword, 111 PseudoClassAutofillStrongPasswordViewable, 111 112 PseudoClassHover, 112 113 PseudoClassDrag, -
trunk/Source/WebCore/css/SelectorChecker.cpp
r246490 r248373 972 972 case CSSSelector::PseudoClassAutofillStrongPassword: 973 973 return isAutofilledStrongPassword(element); 974 case CSSSelector::PseudoClassAutofillStrongPasswordViewable: 975 return isAutofilledStrongPasswordViewable(element); 974 976 case CSSSelector::PseudoClassAnyLink: 975 977 case CSSSelector::PseudoClassAnyLinkDeprecated: -
trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h
r247529 r248373 58 58 } 59 59 60 ALWAYS_INLINE bool isAutofilledStrongPasswordViewable(const Element& element) 61 { 62 return is<HTMLInputElement>(element) && downcast<HTMLInputElement>(element).isAutoFilledAndViewable(); 63 } 64 60 65 ALWAYS_INLINE bool matchesDefaultPseudoClass(const Element& element) 61 66 { -
trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in
r237932 r248373 4 4 -webkit-autofill 5 5 -webkit-autofill-strong-password 6 -webkit-autofill-strong-password-viewable 6 7 -webkit-drag 7 8 -webkit-full-page-media -
trunk/Source/WebCore/css/html.css
r244848 r248373 723 723 724 724 input:-webkit-autofill-strong-password { 725 -webkit-user-select: none !important; 726 } 727 728 input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable { 725 729 -webkit-text-security: none !important; 726 -webkit-user-select: none !important;727 730 cursor: default !important; 728 731 font-family: monospace; 729 732 } 730 733 731 input:-webkit-autofill, input:-webkit-autofill-strong-password {734 input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable { 732 735 background-color: #FAFFBD !important; 733 736 background-image: none !important; -
trunk/Source/WebCore/cssjit/SelectorCompiler.cpp
r246490 r248373 540 540 case CSSSelector::PseudoClassAutofillStrongPassword: 541 541 fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr<CSSOperationPtrTag>(isAutofilledStrongPassword)); 542 return FunctionType::SimpleSelectorChecker; 543 case CSSSelector::PseudoClassAutofillStrongPasswordViewable: 544 fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr<CSSOperationPtrTag>(isAutofilledStrongPasswordViewable)); 542 545 return FunctionType::SimpleSelectorChecker; 543 546 case CSSSelector::PseudoClassChecked: -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r248172 r248373 111 111 , m_autocomplete(Uninitialized) 112 112 , m_isAutoFilled(false) 113 , m_isAutoFilledAndViewable(false) 113 114 , m_autoFillButtonType(static_cast<uint8_t>(AutoFillButtonType::None)) 114 115 , m_lastAutoFillButtonType(static_cast<uint8_t>(AutoFillButtonType::None)) … … 518 519 return; 519 520 setAutoFilled(false); 521 setAutoFilledAndViewable(false); 520 522 setShowAutoFillButton(AutoFillButtonType::None); 521 523 if (auto* page = document().page()) … … 916 918 917 919 setAutoFilled(false); 920 setAutoFilledAndViewable(false); 918 921 setShowAutoFillButton(AutoFillButtonType::None); 919 922 setChecked(hasAttributeWithoutSynchronization(checkedAttr)); … … 1341 1344 1342 1345 m_isAutoFilled = autoFilled; 1346 invalidateStyleForSubtree(); 1347 } 1348 1349 void HTMLInputElement::setAutoFilledAndViewable(bool autoFilledAndViewable) 1350 { 1351 if (autoFilledAndViewable == m_isAutoFilledAndViewable) 1352 return; 1353 1354 m_isAutoFilledAndViewable = autoFilledAndViewable; 1343 1355 invalidateStyleForSubtree(); 1344 1356 } -
trunk/Source/WebCore/html/HTMLInputElement.h
r246490 r248373 241 241 WEBCORE_EXPORT void setAutoFilled(bool = true); 242 242 243 bool isAutoFilledAndViewable() const { return m_isAutoFilledAndViewable; } 244 WEBCORE_EXPORT void setAutoFilledAndViewable(bool = true); 245 243 246 AutoFillButtonType lastAutoFillButtonType() const { return static_cast<AutoFillButtonType>(m_lastAutoFillButtonType); } 244 247 AutoFillButtonType autoFillButtonType() const { return static_cast<AutoFillButtonType>(m_autoFillButtonType); } … … 466 469 unsigned m_autocomplete : 2; // AutoCompleteSetting 467 470 bool m_isAutoFilled : 1; 471 bool m_isAutoFilledAndViewable : 1; 468 472 unsigned m_autoFillButtonType : 3; // AutoFillButtonType 469 473 unsigned m_lastAutoFillButtonType : 3; // AutoFillButtonType -
trunk/Source/WebCore/testing/Internals.cpp
r248301 r248373 1864 1864 } 1865 1865 1866 void Internals::setAutoFilledAndViewable(HTMLInputElement& element, bool enabled) 1867 { 1868 element.setAutoFilledAndViewable(enabled); 1869 } 1870 1866 1871 static AutoFillButtonType toAutoFillButtonType(Internals::AutoFillButtonType type) 1867 1872 { -
trunk/Source/WebCore/testing/Internals.h
r248301 r248373 266 266 bool elementShouldAutoComplete(HTMLInputElement&); 267 267 void setAutofilled(HTMLInputElement&, bool enabled); 268 void setAutoFilledAndViewable(HTMLInputElement&, bool enabled); 268 269 enum class AutoFillButtonType { None, Contacts, Credentials, StrongPassword, CreditCard }; 269 270 void setShowAutoFillButton(HTMLInputElement&, AutoFillButtonType); -
trunk/Source/WebCore/testing/Internals.idl
r248301 r248373 293 293 boolean elementShouldAutoComplete(HTMLInputElement inputElement); 294 294 void setAutofilled(HTMLInputElement inputElement, boolean enabled); 295 void setAutoFilledAndViewable(HTMLInputElement inputElement, boolean enabled); 295 296 void setShowAutoFillButton(HTMLInputElement inputElement, AutoFillButtonType autoFillButtonType); 296 297 AutoFillButtonType autoFillButtonType(HTMLInputElement inputElement); -
trunk/Source/WebKit/ChangeLog
r248372 r248373 1 2019-08-07 Priyanka Agarwal <pagarwal999@apple.com> 2 3 Allow clients to toggle a text input field between being viewable and having characters hidden while maintaining 4 a yellow auto-filled appearance 5 https://bugs.webkit.org/show_bug.cgi?id=200037 6 rdar://problem/51900961 7 8 Reviewed by Daniel Bates. 9 10 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h: 11 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm: 12 (-[WKWebProcessPlugInNodeHandle HTMLInputElementIsAutoFilledAndViewable]): 13 Accessor function for boolean which represents if the input element is autofilled and viewable. 14 15 (-[WKWebProcessPlugInNodeHandle setHTMLInputElementIsAutoFilledAndViewable:]): 16 Setter function for boolean which represents if the input element is autofilled and viewable. 17 18 * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp: 19 (WKBundleNodeHandleSetHTMLInputElementAutoFilledAndViewable): 20 Accessor function for boolean which represents if the input element is autofilled and viewable. 21 22 * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h: 23 Creating function declaration for boolean setter. 24 25 * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: 26 Accessor function for boolean which represents if the input element is autofilled and viewable. 27 28 (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutoFilledAndViewable const): 29 Setter function for boolean which represents if the input element is autofilled and viewable. 30 31 (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutoFilledAndViewable): 32 Setter function for boolean which represents if the input element is autofilled and viewable. 33 34 * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: 35 Adding setter and getter functions for the boolean which represents if the input element is autofilled 36 and viewable. 37 1 38 2019-08-07 Chris Dumez <cdumez@apple.com> 2 39 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h
r245294 r248373 52 52 @property (nonatomic, readonly) CGRect elementBounds; 53 53 @property (nonatomic) BOOL HTMLInputElementIsAutoFilled; 54 @property (nonatomic) BOOL HTMLInputElementIsAutoFilledAndViewable; 54 55 @property (nonatomic, readonly) BOOL HTMLInputElementIsUserEdited; 55 56 @property (nonatomic, readonly) BOOL HTMLTextAreaElementIsUserEdited; -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm
r242339 r248373 105 105 } 106 106 107 - (BOOL)HTMLInputElementIsAutoFilledAndViewable 108 { 109 return _nodeHandle->isHTMLInputElementAutoFilledAndViewable(); 110 } 111 107 112 - (void)setHTMLInputElementIsAutoFilled:(BOOL)isAutoFilled 108 113 { 109 114 _nodeHandle->setHTMLInputElementAutoFilled(isAutoFilled); 115 } 116 117 - (void)setHTMLInputElementIsAutoFilledAndViewable:(BOOL)isAutoFilledAndViewable 118 { 119 _nodeHandle->setHTMLInputElementAutoFilledAndViewable(isAutoFilledAndViewable); 110 120 } 111 121 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
r238832 r248373 131 131 } 132 132 133 void WKBundleNodeHandleSetHTMLInputElementAutoFilledAndViewable(WKBundleNodeHandleRef htmlInputElementHandleRef, bool autoFilledAndViewable) 134 { 135 WebKit::toImpl(htmlInputElementHandleRef)->setHTMLInputElementAutoFilledAndViewable(autoFilledAndViewable); 136 } 137 133 138 bool WKBundleNodeHandleGetHTMLInputElementAutoFillButtonEnabled(WKBundleNodeHandleRef htmlInputElementHandleRef) 134 139 { -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
r237647 r248373 65 65 WK_EXPORT bool WKBundleNodeHandleGetHTMLInputElementAutoFilled(WKBundleNodeHandleRef htmlInputElementHandle); 66 66 WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFilled(WKBundleNodeHandleRef htmlInputElementHandle, bool filled); 67 WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFilledAndViewable(WKBundleNodeHandleRef htmlInputElementHandle, bool autoFilledAndViewable); 67 68 WK_EXPORT bool WKBundleNodeHandleGetHTMLInputElementAutoFillButtonEnabled(WKBundleNodeHandleRef htmlInputElementHandle); 68 69 WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFillButtonEnabledWithButtonType(WKBundleNodeHandleRef htmlInputElementHandle, WKAutoFillButtonType autoFillButtonType); -
trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
r247921 r248373 251 251 } 252 252 253 bool InjectedBundleNodeHandle::isHTMLInputElementAutoFilledAndViewable() const 254 { 255 if (!is<HTMLInputElement>(m_node)) 256 return false; 257 258 return downcast<HTMLInputElement>(m_node.get()).isAutoFilledAndViewable(); 259 } 260 253 261 void InjectedBundleNodeHandle::setHTMLInputElementAutoFilled(bool filled) 254 262 { … … 257 265 258 266 downcast<HTMLInputElement>(m_node.get()).setAutoFilled(filled); 267 } 268 269 void InjectedBundleNodeHandle::setHTMLInputElementAutoFilledAndViewable(bool autoFilledAndViewable) 270 { 271 if (!is<HTMLInputElement>(m_node)) 272 return; 273 274 downcast<HTMLInputElement>(m_node.get()).setAutoFilledAndViewable(autoFilledAndViewable); 259 275 } 260 276 -
trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
r239427 r248373 68 68 void setHTMLInputElementSpellcheckEnabled(bool); 69 69 bool isHTMLInputElementAutoFilled() const; 70 bool isHTMLInputElementAutoFilledAndViewable() const; 70 71 void setHTMLInputElementAutoFilled(bool); 72 void setHTMLInputElementAutoFilledAndViewable(bool); 71 73 bool isHTMLInputElementAutoFillButtonEnabled() const; 72 74 void setHTMLInputElementAutoFillButtonEnabled(WebCore::AutoFillButtonType); -
trunk/Source/WebKitLegacy/mac/ChangeLog
r248190 r248373 1 2019-08-07 Priyanka Agarwal <pagarwal999@apple.com> 2 3 Allow clients to toggle a text input field between being viewable and having characters hidden while maintaining 4 a yellow auto-filled appearance 5 https://bugs.webkit.org/show_bug.cgi?id=200037 6 rdar://problem/51900961 7 8 Reviewed by Daniel Bates. 9 10 * DOM/WebDOMOperations.mm: 11 (-[DOMHTMLInputElement _isAutoFilledAndViewable]): 12 (-[DOMHTMLInputElement _setAutoFilledAndViewable:]): 13 * DOM/WebDOMOperationsPrivate.h: 14 1 15 2019-08-02 Keith Rollin <krollin@apple.com> 2 16 -
trunk/Source/WebKitLegacy/mac/DOM/WebDOMOperations.mm
r237266 r248373 226 226 } 227 227 228 - (BOOL)_isAutoFilledAndViewable 229 { 230 return downcast<HTMLInputElement>(core((DOMElement *)self))->isAutoFilledAndViewable(); 231 } 232 228 233 - (void)_setAutofilled:(BOOL)autofilled 229 234 { 230 235 downcast<HTMLInputElement>(core((DOMElement *)self))->setAutoFilled(autofilled); 236 } 237 238 - (void)_setAutoFilledAndViewable:(BOOL)autoFilledAndViewable 239 { 240 downcast<HTMLInputElement>(core((DOMElement *)self))->setAutoFilledAndViewable(autoFilledAndViewable); 231 241 } 232 242 -
trunk/Source/WebKitLegacy/mac/DOM/WebDOMOperationsPrivate.h
r211468 r248373 44 44 - (BOOL)_isAutofilled; 45 45 - (void)_setAutofilled:(BOOL)autofilled; 46 47 - (BOOL)_isAutoFilledAndViewable; 48 - (void)_setAutoFilledAndViewable:(BOOL)autoFilledAndViewable; 46 49 @end 47 50
Note:
See TracChangeset
for help on using the changeset viewer.