Web Inspector: element details hanger in inspector overlay should have better placeme...
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2018 05:30:09 +0000 (05:30 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2018 05:30:09 +0000 (05:30 +0000)
commit67cddb863176545e199d8d34dc30ec8e301e2b0e
tree9c781e77065dfc4fddc04a51c8d19da58e17afc2
parente706f5cbc6767659c0c6173ceed75dd7b7e066e7
Web Inspector: element details hanger in inspector overlay should have better placement logic
https://bugs.webkit.org/show_bug.cgi?id=128482
<rdar://problem/16020709>

Reviewed by Timothy Hatcher.

When determining the best position for the hovered element details "tooltip",
perform placement tests in view space, not canvas space, and account for the
top content inset.

* inspector/InspectorOverlayPage.js:
(reset): Drive by fix: added missing `.height`.
(_drawElementTitle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorOverlayPage.js