Bug 101200

Summary: Web Inspector: make Spectrum and Popover WebInspector.Views in order to enable reuse
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch yurys: review+

Pavel Feldman
Reported 2012-11-05 02:38:16 PST
- Split Spectrum and SpectrumPopoverHelper (first is a component, second it controller) - Made Popover a root view in order to enable lazy style loading for potential subviews (such as Spectrum) - Extracted spectrum's css into a separate file
Attachments
Patch (33.69 KB, patch)
2012-11-05 02:40 PST, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2012-11-05 02:40:45 PST
Yury Semikhatsky
Comment 2 2012-11-05 23:42:13 PST
Comment on attachment 172301 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=172301&action=review > Source/WebCore/ChangeLog:8 > + - Split Spectrum and SpectrumPopoverHelper (first is a component, second it controller) typo: second it controller -> second is its controller > Source/WebCore/inspector/front-end/DOMExtension.js:208 > +function Size(width, height) Why not WebInspector.Size to make it clear that it is not from Web API? > Source/WebCore/inspector/front-end/View.js:372 > + this.element.positionAt(undefined, undefined); Why not reuse Element.measurePreferredSize and simply call this.element.measurePreferredSize() here instead?
Pavel Feldman
Comment 3 2012-11-06 03:56:46 PST
> typo: second it controller -> second is its controller Done > > > Source/WebCore/inspector/front-end/DOMExtension.js:208 > > +function Size(width, height) > > Why not WebInspector.Size to make it clear that it is not from Web API? > I'm adding it into DOMExtension which is compiled outside of inspector. I did not want to invent a namespace for it. > > Source/WebCore/inspector/front-end/View.js:372 > > + this.element.positionAt(undefined, undefined); > > Why not reuse Element.measurePreferredSize and simply call this.element.measurePreferredSize() here instead? Because we can't operate on View's elements using regular DOM operations.
Pavel Feldman
Comment 4 2012-11-06 04:01:28 PST
Note You need to log in before you can comment on or make changes to this bug.