-
graouts@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=125069 Reviewed by Joseph Pecoraro. Fix a regression introduced in http://trac.webkit.org/changeset/159286. We should only offset the frame of the popover in the y-axis if the target edge is on the x-axis, and vice versa. We also remove the needsToDrawBackground check since it incorrectly disregarded the anchor point. We now always draw the background which is a lot safer and guarantees we'll always draw an adequate frame and anchor point. * UserInterface/Popover.js: (WebInspector.Popover.prototype._update): (WebInspector.Popover.prototype._bestMetricsForEdge): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159952 268f45cc-cd09-0410-ab3c-d52691b4dbfc
88f07961