<rdar://problem/61568528>
Created attachment 398246 [details] Patch
Comment on attachment 398246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398246&action=review > Source/WebCore/editing/TextManipulationController.cpp:233 > + if (nameToCheck == valueAttr.get() && is<HTMLInputElement>(element)) > + return downcast<HTMLInputElement>(element).isTextButton(); I would write: if (nameToCheck == valueAttr) return is<HTMLInputElement>(element) && downcast<HTMLInputElement>(element).isTextButton();
Comment on attachment 398246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398246&action=review >> Source/WebCore/editing/TextManipulationController.cpp:233 >> + return downcast<HTMLInputElement>(element).isTextButton(); > > I would write: > > if (nameToCheck == valueAttr) > return is<HTMLInputElement>(element) && downcast<HTMLInputElement>(element).isTextButton(); Sounds good!
Created attachment 398269 [details] Patch for landing
Committed r261042: <https://trac.webkit.org/changeset/261042> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398269 [details].