Changeset 56673 in webkit


Ignore:
Timestamp:
Mar 27, 2010 5:59:12 PM (14 years ago)
Author:
mitz@apple.com
Message:

WebCore: <rdar://problem/7801598> REGRESSION (r56182): iWeb shadow drawn around image rectangle, not around opaque part of the image
https://bugs.webkit.org/show_bug.cgi?id=36700

Reviewed by Darin Adler.

  • css/CSSPrimitiveValue.cpp:

(WebCore::CSSPrimitiveValue::createColor): Reverted to returning an RGB color value rather than an
identifier for the transparent color.

LayoutTests: Updated results and one test for
<rdar://problem/7801598> REGRESSION (r56182): iWeb shadow drawn around image rectangle, not around opaque part of the image
https://bugs.webkit.org/show_bug.cgi?id=36700

Reviewed by Darin Adler.

  • fast/css/getComputedStyle/computed-style-expected.txt:
  • fast/css/invalid-import-rule-insertion.html:
  • http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-and-css-extension-expected.txt:
  • http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-expected.txt:
  • http/tests/security/cross-origin-css-expected.txt:
  • http/tests/security/cross-origin-css-in-xml-expected.txt:
  • platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
  • platform/qt/fast/css/getComputedStyle/computed-style-expected.txt:
  • platform/win/fast/css/getComputedStyle/computed-style-expected.txt:
  • svg/css/getComputedStyle-basic-expected.txt:
Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56669 r56673  
     12010-03-27  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Updated results and one test for
     6        <rdar://problem/7801598> REGRESSION (r56182): iWeb shadow drawn around image rectangle, not around opaque part of the image
     7        https://bugs.webkit.org/show_bug.cgi?id=36700
     8
     9        * fast/css/getComputedStyle/computed-style-expected.txt:
     10        * fast/css/invalid-import-rule-insertion.html:
     11        * http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-and-css-extension-expected.txt:
     12        * http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-expected.txt:
     13        * http/tests/security/cross-origin-css-expected.txt:
     14        * http/tests/security/cross-origin-css-in-xml-expected.txt:
     15        * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
     16        * platform/qt/fast/css/getComputedStyle/computed-style-expected.txt:
     17        * platform/win/fast/css/getComputedStyle/computed-style-expected.txt:
     18        * svg/css/getComputedStyle-basic-expected.txt:
     19
    1202010-03-27  Mark Rowe  <mrowe@apple.com>
    221
  • trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt

    r56207 r56673  
    22
    33background-attachment: scroll;
    4 background-color: transparent;
     4background-color: rgba(0, 0, 0, 0);
    55background-image: none;
    66background-position: 0% 0%;
  • trunk/LayoutTests/fast/css/invalid-import-rule-insertion.html

    r56182 r56673  
    2121        catch(e)
    2222        {
    23             if(window.getComputedStyle(document.body, "").getPropertyValue("background-color") == "transparent" && document.styleSheets[0].cssRules.length == 2)
     23            if(window.getComputedStyle(document.body, "").getPropertyValue("background-color") == "rgba(0, 0, 0, 0)" && document.styleSheets[0].cssRules.length == 2)
    2424            {
    2525                document.getElementById("testresult").innerHTML = "Pass";
  • trunk/LayoutTests/http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-and-css-extension-expected.txt

    r56182 r56673  
    1 This test passes if we do NOT apply the stylesheet (which turns the background color red.) The background color is: transparent.
     1This test passes if we do NOT apply the stylesheet (which turns the background color red.) The background color is: rgba(0, 0, 0, 0).
  • trunk/LayoutTests/http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-expected.txt

    r56182 r56673  
    1 This test passes if we do NOT apply the stylesheet (which turns the background color red.) The background color is: transparent.
     1This test passes if we do NOT apply the stylesheet (which turns the background color red.) The background color is: rgba(0, 0, 0, 0).
  • trunk/LayoutTests/http/tests/security/cross-origin-css-expected.txt

    r56182 r56673  
    11LINK Cross-origin, HTML, valid: rgb(255, 255, 0)
    2 LINK + IMPORT Cross-origin, HTML, invalid: transparent
     2LINK + IMPORT Cross-origin, HTML, invalid: rgba(0, 0, 0, 0)
    33LINK Cross-origin, CSS, invalid: rgb(255, 255, 0)
    44LINK Same-origin, HTML, invalid: rgb(255, 255, 0)
  • trunk/LayoutTests/http/tests/security/cross-origin-css-in-xml-expected.txt

    r56182 r56673  
    1 XML CSS Same-origin, HTML, valid: transparent
     1XML CSS Same-origin, HTML, valid: rgba(0, 0, 0, 0)
  • trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt

    r56207 r56673  
    33background-attachment: scroll;
    44background-clip: border-box;
    5 background-color: transparent;
     5background-color: rgba(0, 0, 0, 0);
    66background-image: none;
    77background-origin: padding-box;
  • trunk/LayoutTests/platform/qt/fast/css/getComputedStyle/computed-style-expected.txt

    r56207 r56673  
    33background-attachment: scroll;
    44background-clip: border-box;
    5 background-color: transparent;
     5background-color: rgba(0, 0, 0, 0);
    66background-image: none;
    77background-origin: padding-box;
  • trunk/LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-expected.txt

    r56207 r56673  
    33background-attachment: scroll;
    44background-clip: border-box;
    5 background-color: transparent;
     5background-color: rgba(0, 0, 0, 0);
    66background-image: none;
    77background-origin: padding-box;
  • trunk/WebCore/ChangeLog

    r56670 r56673  
     12010-03-27  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        <rdar://problem/7801598> REGRESSION (r56182): iWeb shadow drawn around image rectangle, not around opaque part of the image
     6        https://bugs.webkit.org/show_bug.cgi?id=36700
     7
     8        * css/CSSPrimitiveValue.cpp:
     9        (WebCore::CSSPrimitiveValue::createColor): Reverted to returning an RGB color value rather than an
     10        identifier for the transparent color.
     11
    1122010-03-26  Joseph Pecoraro  <joepeck@webkit.org>
    213
  • trunk/WebCore/css/CSSPrimitiveValue.cpp

    r56663 r56673  
    6969    // These are the empty and deleted values of the hash table.
    7070    if (rgbValue == Color::transparent) {
    71         static CSSPrimitiveValue* colorTransparent = new CSSPrimitiveValue(CSSValueTransparent);
     71        static CSSPrimitiveValue* colorTransparent = new CSSPrimitiveValue(Color::transparent);
    7272        return colorTransparent;
    7373    }
Note: See TracChangeset for help on using the changeset viewer.