[Webkit-unassigned] [Bug 107263] Web Inspector: Allow SplitView to change orientation after the construction

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 18 05:59:53 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=107263


Pavel Feldman <pfeldman at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #183429|review?                     |review-
               Flag|                            |




--- Comment #2 from Pavel Feldman <pfeldman at chromium.org>  2013-01-18 06:01:40 PST ---
(From update of attachment 183429)
View in context: https://bugs.webkit.org/attachment.cgi?id=183429&action=review

Few nits and it is good to go.

> Source/WebCore/inspector/front-end/SplitView.js:45
>      this._firstElement = document.createElement("div");

this._firstElement = this.element.createChild("div", "split-view-contents");

will do the same.

> Source/WebCore/inspector/front-end/SplitView.js:50
> +    this._secondElement.className = "split-view-contents";

ditto

> Source/WebCore/inspector/front-end/SplitView.js:54
> +    this._resizerElement.className = "split-view-resizer";

ditto

> Source/WebCore/inspector/front-end/SplitView.js:81
> +    setIsVertical: function(isVertical)

setVertical

> Source/WebCore/inspector/front-end/SplitView.js:95
> +    _innerSetIsVertical: function(isVertical)

_innerSetVertical

> Source/WebCore/inspector/front-end/SplitView.js:281
> +    _updateTotalSize: function() {

{ on the next line

> Source/WebCore/inspector/front-end/SplitView.js:295
> +        this._resizerElement.style.removeProperty("left");

This might look better as a part of removeAllLayoutProperties

> Source/WebCore/inspector/front-end/SplitView.js:396
> +    _onDragStart: function(event) {

{ on the next line

> Source/WebCore/inspector/front-end/SplitView.js:405
> +      if (!this._sidebarSizeSettingName)

4 space indent please

> Source/WebCore/inspector/front-end/SplitView.js:421
> +        return (sizeSetting ? sizeSetting.get() : 0 ) || (this._isVertical ? this._savedSidebarWidth : this._savedSidebarHeight);

no space after 0, please split this into two lines?

> Source/WebCore/inspector/front-end/SplitView.js:430
> +            this._savedSidebarWidth = size;

It is unfortunate split is now Width/Height aware, but I don't see a way to make it simpler. Maintaining both settings at all times and making settingName required is probably a good thing that will save on some lines here as well.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list