Bug 66858 - Web Inspector: [refactoring] use PopoverHelper to implement popup in the SourceFrame
Summary: Web Inspector: [refactoring] use PopoverHelper to implement popup in the Sour...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Andrey Kosyakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 07:54 PDT by Andrey Kosyakov
Modified: 2011-08-25 08:48 PDT (History)
10 users (show)

See Also:


Attachments
patch (13.02 KB, patch)
2011-08-24 07:57 PDT, Andrey Kosyakov
pfeldman: review-
Details | Formatted Diff | Diff
patch (13.37 KB, patch)
2011-08-25 02:57 PDT, Andrey Kosyakov
no flags Details | Formatted Diff | Diff
patch (!= => !===) (13.37 KB, patch)
2011-08-25 03:03 PDT, Andrey Kosyakov
no flags Details | Formatted Diff | Diff
patch (21.98 KB, patch)
2011-08-25 06:35 PDT, Andrey Kosyakov
pfeldman: review-
Details | Formatted Diff | Diff
patch (22.11 KB, patch)
2011-08-25 07:46 PDT, Andrey Kosyakov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kosyakov 2011-08-24 07:54:51 PDT
This replaces custom popover logic in the SourceFrame with the usage of PopoverHelper.
This also fixes a problem where popup is hidden when mouse is moved from one expression to another.
Comment 1 Andrey Kosyakov 2011-08-24 07:57:39 PDT
Created attachment 104999 [details]
patch
Comment 2 Pavel Feldman 2011-08-25 00:09:43 PDT
Comment on attachment 104999 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=104999&action=review

> Source/WebCore/inspector/front-end/Popover.js:185
> +        this._popup = value;

You should not expose popup setter.

> Source/WebCore/inspector/front-end/SourceFrame.js:695
> +        return element;

For the expression

foo.bar.baz, the anchor element should be "foo" span.
Comment 3 Andrey Kosyakov 2011-08-25 02:57:13 PDT
Created attachment 105150 [details]
patch
Comment 4 Andrey Kosyakov 2011-08-25 03:03:23 PDT
Created attachment 105151 [details]
patch (!= => !===)
Comment 5 Andrey Kosyakov 2011-08-25 06:35:09 PDT
Created attachment 105171 [details]
patch

- move content element from Popover constructor to Popover.show()
- create popover in PopoverHelper rather than in client code
- rename most occurrences of "popup" to popover.
Comment 6 Pavel Feldman 2011-08-25 07:38:05 PDT
Comment on attachment 105171 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=105171&action=review

> Source/WebCore/inspector/front-end/SourceFrame.js:725
> +            if (wasThrown || !this._delegate.debuggerPaused()) {

Should you check for popover.disposed as a start?
Comment 7 Andrey Kosyakov 2011-08-25 07:46:07 PDT
Created attachment 105190 [details]
patch
Comment 8 Andrey Kosyakov 2011-08-25 08:47:53 PDT
Comment on attachment 105190 [details]
patch

Clearing flags on attachment: 105190

Committed r93789: <http://trac.webkit.org/changeset/93789>
Comment 9 Andrey Kosyakov 2011-08-25 08:48:01 PDT
All reviewed patches have been landed.  Closing bug.