Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add type checking to isEqual methods
https://bugs.webkit.org/show_bug.cgi?id=126862 Reviewed by Anders Carlsson. Source/WebCore: * page/ios/WebEventRegion.mm: (-[WebEventRegion isEqual:]): Add type checking on the argument. Add a FIXME about the lack of a hash method override. Formatted to match the usual WebKit coding style. Source/WebKit/ios: * WebCoreSupport/WebVisiblePosition.mm: (-[WebVisiblePosition isEqual:]): Add type checking on the argument. Add a FIXME about the lack of a hash method override. Simplified by removing the unneeded local variables. Source/WebKit/mac: * WebCoreSupport/WebSecurityOrigin.mm: (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method override. Tweaked formatting. * WebView/WebDashboardRegion.mm: (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a FIXME about the lack of a hash method override. Source/WebKit2: * UIProcess/API/ios/WKInteractionView.mm: (-[WKTextRange isEqual:]): Added type checking for the argument. The old code asserted instead, and it's not clear what guarantees that assertion is true. Added a FIXME about the lack of a hash method. Added another FIXME about the fact that this method ignores much of the object state. Removed an unneeded extra fetch of the isRange property. Deleted some dead code. (-[WKTextPosition isEqual:]): Ditto. Canonical link: https://commits.webkit.org/144849@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
46e4d0c
commit 46619ed
Showing
9 changed files
with
93 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters