Changeset 216131 in webkit
- Timestamp:
- May 3, 2017 12:17:19 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r216130 r216131 1 2017-05-03 Zalan Bujtas <zalan@apple.com> 2 3 RenderSearchField should not use isTextField() in SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT 4 https://bugs.webkit.org/show_bug.cgi?id=171608 5 6 Reviewed by Simon Fraser. 7 8 isTextField() is true for any generic single line text control. 9 10 * rendering/RenderObject.h: 11 (WebCore::RenderObject::isSearchField): 12 * rendering/RenderSearchField.h: 13 1 14 2017-05-03 Frederic Wang <fwang@igalia.com> 2 15 -
trunk/Source/WebCore/rendering/RenderObject.h
r214443 r216131 267 267 virtual bool isTextArea() const { return false; } 268 268 virtual bool isTextField() const { return false; } 269 virtual bool isSearchField() const { return false; } 269 270 virtual bool isTextControlInnerBlock() const { return false; } 270 271 virtual bool isVideo() const { return false; } -
trunk/Source/WebCore/rendering/RenderSearchField.h
r214173 r216131 46 46 47 47 private: 48 bool isSearchField() const final { return true; } 49 48 50 void willBeDestroyed() override; 49 51 void centerContainerIfNeeded(RenderBox*) const override; … … 93 95 } // namespace WebCore 94 96 95 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSearchField, is TextField())97 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSearchField, isSearchField())
Note: See TracChangeset
for help on using the changeset viewer.