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

Changeset 160145 in webkit


Ignore:
Timestamp:
Dec 4, 2013, 4:52:36 PM (13 years ago)
Author:
Antoine Quint
Message:

Web Inspector: ColorWheel uses old Color constructor
https://bugs.webkit.org/show_bug.cgi?id=125260

Reviewed by Joseph Pecoraro.

Update to new WebInspector.Color constructor signature and use a clear color.

  • UserInterface/ColorWheel.js:

(WebInspector.ColorWheel.prototype.get tintedColor):
(WebInspector.ColorWheel.prototype.get rawColor):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r160143 r160145  
     12013-12-04  Antoine Quint  <graouts@apple.com>
     2
     3        Web Inspector: ColorWheel uses old Color constructor
     4        https://bugs.webkit.org/show_bug.cgi?id=125260
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        Update to new WebInspector.Color constructor signature and use a clear color.
     9
     10        * UserInterface/ColorWheel.js:
     11        (WebInspector.ColorWheel.prototype.get tintedColor):
     12        (WebInspector.ColorWheel.prototype.get rawColor):
     13
    1142013-12-04  Antoine Quint  <graouts@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/ColorWheel.js

    r160143 r160145  
    8686            return this._colorAtPointWithBrightness(this._crosshairPosition.x, this._crosshairPosition.y, this._brightness);
    8787
    88         return new WebInspector.Color("white");
     88        return new WebInspector.Color(WebInspector.Color.Format.RGBA, [0, 0, 0, 0]);
    8989    },
    9090
     
    101101            return this._colorAtPointWithBrightness(this._crosshairPosition.x, this._crosshairPosition.y, 1);
    102102
    103         return new WebInspector.Color("white");
     103        return new WebInspector.Color(WebInspector.Color.Format.RGBA, [0, 0, 0, 0]);
    104104    },
    105105
Note: See TracChangeset for help on using the changeset viewer.