Ability to use AnchorBox instead of Element as an anchor for Popover.
Created attachment 195711 [details] Patch
Comment on attachment 195711 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=195711&action=review > Source/WebCore/inspector/front-end/Popover.js:56 > + * @param {Element|AnchorBox} anchor Vsevolod wont accept this annotation =(
Comment on attachment 195711 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=195711&action=review >> Source/WebCore/inspector/front-end/Popover.js:56 >> + * @param {Element|AnchorBox} anchor > > Vsevolod wont accept this annotation =( How about a bet? :)
Comment on attachment 195711 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=195711&action=review >>> Source/WebCore/inspector/front-end/Popover.js:56 >>> + * @param {Element|AnchorBox} anchor >> >> Vsevolod wont accept this annotation =( > > How about a bet? :) You can move anchorElement.boxInWindow(window); call to the topmost functions like show and showView and implement another top level method showForBox In that case you will have better api.
Comment on attachment 195711 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=195711&action=review > Source/WebCore/inspector/front-end/Popover.js:159 > + var anchorBox = anchorElement.constructor === AnchorBox ? anchorElement : anchorElement.boxInWindow(window); Please use instanceof
Created attachment 195724 [details] Patch
Comment on attachment 195724 [details] Patch Clearing flags on attachment: 195724 Committed r147209: <http://trac.webkit.org/changeset/147209>
All reviewed patches have been landed. Closing bug.