Web Inspector: Improve some cases of "Object?" Type Annotations
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jun 2015 19:16:51 +0000 (19:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jun 2015 19:16:51 +0000 (19:16 +0000)
commita08b449297d57fdd52a9e5c2e69dd62b75082904
treece065a903c92728e750346ed27444be04db4938c
parentfe90ef245a45a6241337d02dfe4b05daf347aa10
Web Inspector: Improve some cases of "Object?" Type Annotations
https://bugs.webkit.org/show_bug.cgi?id=145954

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-06-15
Reviewed by Timothy Hatcher.

* UserInterface/Views/TypeTokenView.js:
(WebInspector.TypeTokenView.prototype._displayTypeName):
The TypeSet inclusions cover all types, so we can use the leastCommonAncestor
name as long as the type set is just object or object and null/undefined.
If the typeset includes other primitives then it will gracefully go down
below to become something like Object or (many).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TypeTokenView.js