Commit c319a079 authored by apavlov@chromium.org's avatar apavlov@chromium.org

Web Inspector: [Styles] HTML color names not converted to RGB/HEX/HSL when...

Web Inspector: [Styles] HTML color names not converted to RGB/HEX/HSL when "Color format" feature used
https://bugs.webkit.org/show_bug.cgi?id=106767

Reviewed by Vsevolod Vlasov.

We used to render named colors as names regardless of the selected color format option.

* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertyTreeElement.prototype.updateTitle.):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a7170797
2013-01-14 Alexander Pavlov <apavlov@chromium.org>
Web Inspector: [Styles] HTML color names not converted to RGB/HEX/HSL when "Color format" feature used
https://bugs.webkit.org/show_bug.cgi?id=106767
Reviewed by Vsevolod Vlasov.
We used to render named colors as names regardless of the selected color format option.
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertyTreeElement.prototype.updateTitle.):
2013-01-14 Andrei Bucur <abucur@adobe.com>
Crash caused by incomplete cleanup of regions information for anonymous block
......@@ -1819,8 +1819,6 @@ WebInspector.StylePropertyTreeElement.prototype = {
var formatSetting = WebInspector.settings.colorFormat.get();
if (formatSetting === cf.Original)
format = cf.Original;
else if (color.nickname)
format = cf.Nickname;
else if (formatSetting === cf.RGB)
format = (color.simple ? cf.RGB : cf.RGBA);
else if (formatSetting === cf.HSL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment