Title: [109477] branches/chromium/963
- Revision
- 109477
- Author
- [email protected]
- Date
- 2012-03-01 18:04:25 -0800 (Thu, 01 Mar 2012)
Log Message
Merge 107726
BUG=114068
Review URL: https://chromiumcodereview.appspot.com/9569051
Modified Paths
Added Paths
Diff
Copied: branches/chromium/963/LayoutTests/fast/dom/class-attr-change-double-mutation-fire-expected.txt (from rev 107726, trunk/LayoutTests/fast/dom/class-attr-change-double-mutation-fire-expected.txt) (0 => 109477)
--- branches/chromium/963/LayoutTests/fast/dom/class-attr-change-double-mutation-fire-expected.txt (rev 0)
+++ branches/chromium/963/LayoutTests/fast/dom/class-attr-change-double-mutation-fire-expected.txt 2012-03-02 02:04:25 UTC (rev 109477)
@@ -0,0 +1 @@
+PASS
Copied: branches/chromium/963/LayoutTests/fast/dom/class-attr-change-double-mutation-fire.html (from rev 107726, trunk/LayoutTests/fast/dom/class-attr-change-double-mutation-fire.html) (0 => 109477)
--- branches/chromium/963/LayoutTests/fast/dom/class-attr-change-double-mutation-fire.html (rev 0)
+++ branches/chromium/963/LayoutTests/fast/dom/class-attr-change-double-mutation-fire.html 2012-03-02 02:04:25 UTC (rev 109477)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<div id="result"></div>
+<style>
+ #test {}
+</style>
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+var count = 0;
+
+function setResult()
+{
+ if (count == 1)
+ result.innerHTML = "PASS";
+ else
+ result.innerHTML = "FAIL";
+}
+
+test = document.createElement('div');
+test.addEventListener('DOMSubtreeModified', function() { count++; setResult(); }, false)
+test.setAttribute('class', 'test');
+</script>
+</html>
Modified: branches/chromium/963/Source/WebCore/dom/StyledElement.cpp (109476 => 109477)
--- branches/chromium/963/Source/WebCore/dom/StyledElement.cpp 2012-03-02 02:00:07 UTC (rev 109476)
+++ branches/chromium/963/Source/WebCore/dom/StyledElement.cpp 2012-03-02 02:04:25 UTC (rev 109477)
@@ -228,7 +228,6 @@
} else if (attributeMap())
attributeMap()->clearClass();
setNeedsStyleRecalc();
- dispatchSubtreeModifiedEvent();
}
void StyledElement::parseMappedAttribute(Attribute* attr)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes