Commit dd4c7a30 authored by thatcher's avatar thatcher

LayoutTests:

        Reviewed by Hyatt.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
          REGRESSION: Very odd roll-over issues (content disappearing)

        * fast/dom/HTMLLinkElement/pending-stylesheet-count.html: Added.
        * fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt: Added.
        * fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.png: Added.
        * fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.checksum: Added.

WebCore:

        Reviewed by Hyatt.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
          REGRESSION: Very odd roll-over issues (content disappearing)

        Test: fast/dom/HTMLLinkElement/pending-stylesheet-count.html

        * html/HTMLLinkElement.cpp:
        (WebCore::HTMLLinkElement::~HTMLLinkElement): If the stylesheet was being
        loaded, call stylesheetLoaded() on the document, to keep the pending stylesheet
        count correct.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6190dbb4
2006-06-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by Hyatt.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
REGRESSION: Very odd roll-over issues (content disappearing)
* fast/dom/HTMLLinkElement/pending-stylesheet-count.html: Added.
* fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt: Added.
* fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.png: Added.
* fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.checksum: Added.
2006-06-02 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by ggaren.
60b5fc828fc4e3169756da0811ebdd4e
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {P} at (0,0) size 784x36
RenderText {#text} at (0,0) size 104x18
text run at (0,0) width 104: "This is a test for "
RenderInline {I} at (0,0) size 774x36
RenderInline {A} at (0,0) size 348x18 [color=#0000EE]
RenderText {#text} at (104,0) size 348x18
text run at (104,0) width 348: "http://bugzilla.opendarwin.org/show_bug.cgi?id=9252"
RenderText {#text} at (452,0) size 774x36
text run at (452,0) width 4: " "
text run at (456,0) width 318: "REGRESSION: Very odd roll-over issues (content"
text run at (0,18) width 88: "disappearing)"
RenderText {#text} at (88,18) size 4x18
text run at (88,18) width 4: "."
RenderBlock {P} at (0,52) size 784x18
RenderText {#text} at (0,0) size 244x18
text run at (0,0) width 244: "There should be a green square below."
RenderBlock {HR} at (0,86) size 784x2 [border: (1px inset #000000)]
RenderBlock {DIV} at (0,96) size 784x0
RenderBlock {DIV} at (0,96) size 100x100 [bgcolor=#008000]
<html>
<head>
<style type="text/css">
#square { width: 100px; height: 100px; }
.red { background: red; }
.green { background: green; }
</style>
<script type="text/javascript">
function test()
{
var linkStr = '<link rel="stylesheet" type="text/css" href="resources/doesnotneedtoexist">';
var target = document.getElementById('t');
target.innerHTML = linkStr;
target.innerHTML = '';
var square = document.getElementById('square');
square.className = 'green';
}
</script>
</head>
<body onload="test()">
<p>
This is a test for <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=9252">http://bugzilla.opendarwin.org/show_bug.cgi?id=9252</a>
REGRESSION: Very odd roll-over issues (content disappearing)</i>.
</p>
<p>
There should be a green square below.
</p>
<hr>
<div id="t"></div>
<div id="square" class="red"></div>
</body>
</html>
2006-06-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by Hyatt.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
REGRESSION: Very odd roll-over issues (content disappearing)
Test: fast/dom/HTMLLinkElement/pending-stylesheet-count.html
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::~HTMLLinkElement): If the stylesheet was being
loaded, call stylesheetLoaded() on the document, to keep the pending stylesheet
count correct.
2006-06-03 Darin Adler <darin@apple.com>
- fix Windows build
......
......@@ -50,8 +50,11 @@ HTMLLinkElement::HTMLLinkElement(Document *doc)
HTMLLinkElement::~HTMLLinkElement()
{
if (m_cachedSheet)
if (m_cachedSheet) {
m_cachedSheet->deref(this);
if (m_loading && !isDisabled() && !isAlternate())
document()->stylesheetLoaded();
}
}
void HTMLLinkElement::setDisabledState(bool _disabled)
......
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