Changeset 209210 in webkit
- Timestamp:
- Dec 1, 2016 2:23:59 PM (7 years ago)
- Location:
- branches/safari-602-branch
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602-branch/LayoutTests/ChangeLog
r209209 r209210 1 2016-12-01 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r208745. rdar://problem/29277336 4 5 2016-11-14 Brent Fulgham <bfulgham@apple.com> 6 7 Correct handling of changing input type 8 https://bugs.webkit.org/show_bug.cgi?id=164759 9 <rdar://problem/29211174> 10 11 Reviewed by Darin Adler. 12 13 * fast/forms/search-cancel-button-change-input-expected.txt: Added. 14 * fast/forms/search-cancel-button-change-input.html: Added. 15 1 16 2016-12-01 Matthew Hanson <matthew_hanson@apple.com> 2 17 -
branches/safari-602-branch/Source/WebCore/ChangeLog
r209209 r209210 1 2016-12-01 Matthew Hanson <matthew_hanson@apple.com> 2 3 Merge r208745. rdar://problem/29277336 4 5 2016-11-14 Brent Fulgham <bfulgham@apple.com> 6 7 Correct handling of changing input type 8 https://bugs.webkit.org/show_bug.cgi?id=164759 9 <rdar://problem/29211174> 10 11 Reviewed by Darin Adler. 12 13 Test: fast/forms/search-cancel-button-change-input.html 14 15 It is possible for JavaScript to change the type property of an input field. WebKit 16 needs to gracefully handle this case. 17 18 Add a type traits specialization so we can properly downcast InputType elements. 19 Use this to only call search functions on actual search input types. 20 21 * html/HTMLInputElement.cpp: 22 (WebCore::HTMLInputElement::onSearch): Only perform search functions if the 23 input type is actually a search field. 24 * html/InputType.h: Add type traits specialization for 'downcast' template. 25 * html/SearchInputType.h: Ditto. 26 1 27 2016-12-01 Matthew Hanson <matthew_hanson@apple.com> 2 28 -
branches/safari-602-branch/Source/WebCore/WebCore.order
r198074 r209210 5835 5835 __ZN7WebCore17MarkupAccumulator13appendOpenTagERN3WTF13StringBuilderEPNS_7ElementEPNS1_7HashMapIPNS1_16AtomicStringImplES8_NS1_7PtrHashIS8_EENS1_10HashTraitsIS8_EESC_EE 5836 5836 __ZNK7WebCore7Element22nodeNamePreservingCaseEv 5837 __ZNK7WebCore13QualifiedName8toStringEv5838 5837 __ZNK7WebCore7Element13hasAttributesEv 5839 5838 __ZN7WebCore17MarkupAccumulator22appendCustomAttributesERN3WTF13StringBuilderEPNS_7ElementEPNS1_7HashMapIPNS1_16AtomicStringImplES8_NS1_7PtrHashIS8_EENS1_10HashTraitsIS8_EESC_EE -
branches/safari-602-branch/Source/WebCore/html/HTMLInputElement.cpp
r203337 r209210 1438 1438 void HTMLInputElement::onSearch() 1439 1439 { 1440 ASSERT(isSearchField()); 1440 // The type of the input element could have changed during event handling. If we are no longer 1441 // a search field, don't try to do search things. 1442 if (!isSearchField()) 1443 return; 1444 1441 1445 if (m_inputType) 1442 static_cast<SearchInputType*>(m_inputType.get())->stopSearchEventTimer();1446 downcast<SearchInputType>(*m_inputType.get()).stopSearchEventTimer(); 1443 1447 dispatchEvent(Event::create(eventNames().searchEvent, true, false)); 1444 1448 } -
branches/safari-602-branch/Source/WebCore/html/InputType.h
r202197 r209210 328 328 } // namespace WebCore 329 329 330 #endif 330 #define SPECIALIZE_TYPE_TRAITS_INPUT_TYPE(ToValueTypeName, predicate) \ 331 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::ToValueTypeName) \ 332 static bool isType(const WebCore::InputType& input) { return input.predicate; } \ 333 SPECIALIZE_TYPE_TRAITS_END() 334 #endif -
branches/safari-602-branch/Source/WebCore/html/SearchInputType.h
r200041 r209210 73 73 } // namespace WebCore 74 74 75 SPECIALIZE_TYPE_TRAITS_INPUT_TYPE(SearchInputType, isSearchField()) 75 76 #endif // SearchInputType_h
Note: See TracChangeset
for help on using the changeset viewer.