⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 197073 in webkit


Ignore:
Timestamp:
Feb 25, 2016, 1:45:15 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r196852 - Web Inspector: Color picker in Visual Styles sidebar should not default to zero alpha
​https://bugs.webkit.org/show_bug.cgi?id=154474
<rdar://problem/24750217>

Patch by Devin Rousso <Devin Rousso> on 2016-02-19
Reviewed by Timothy Hatcher.

  • UserInterface/Views/InlineSwatch.js:

(WebInspector.InlineSwatch.prototype._fallbackValue):
Changed the fallback value for color from transparent to white so that
the color picker starts out with an alpha value of 1.

(WebInspector.InlineSwatch.prototype._handleContextMenuEvent):
Prevents context menu events from having an effect if there is no value
for them to modify.

Location:
releases/WebKitGTK/webkit-2.12/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.12/Source/WebInspectorUI/ChangeLog

    r196798 r197073  
     12016-02-19  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: Color picker in Visual Styles sidebar should not default to zero alpha
     4        https://bugs.webkit.org/show_bug.cgi?id=154474
     5        <rdar://problem/24750217>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Views/InlineSwatch.js:
     10        (WebInspector.InlineSwatch.prototype._fallbackValue):
     11        Changed the fallback value for color from transparent to white so that
     12        the color picker starts out with an alpha value of 1.
     13
     14        (WebInspector.InlineSwatch.prototype._handleContextMenuEvent):
     15        Prevents context menu events from having an effect if there is no value
     16        for them to modify.
     17
    1182016-02-18  Devin Rousso  <dcrousso+webkit@gmail.com>
    219
  • releases/WebKitGTK/webkit-2.12/Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js

    r196798 r197073  
    9090            return WebInspector.Gradient.fromString("linear-gradient(transparent, transparent)");
    9191        case WebInspector.InlineSwatch.Type.Color:
    92             return WebInspector.Color.fromString("transparent");
     92            return WebInspector.Color.fromString("white");
    9393        default:
    9494            return null;
    … …  
    162162    _handleContextMenuEvent(event)
    163163    {
     164        if (!this._value)
     165            return;
     166
    164167        let contextMenu = WebInspector.ContextMenu.createFromEvent(event);
    165168
Note: See TracChangeset for help on using the changeset viewer.