Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
DOMQuad.p1 / p2 / p3 / p4 should behave as [SameObject]
https://bugs.webkit.org/show_bug.cgi?id=178366 Reviewed by Youenn Fablet. Source/WebCore: DOMQuad.p1 / p2 / p3 / p4 should behave as [SameObject]. We attempted to do so using JSDOMQuad::visitAdditionalChildren() but the code did not work because we failed to generate a "isReachableFromOpaqueRoots()" function for JSDOMPoint. Test: fast/css/DOMQuad-points-SameObject.html * dom/DOMPoint.idl: LayoutTests: Add layout test coverage. * fast/css/DOMQuad-points-SameObject.html: Added. Canonical link: https://commits.webkit.org/194590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<script src="../../resources/js-test.js"></script> | ||
<script> | ||
description("Tests that DOMQuad.p1 / p2 / p3 / p4 is [SameObject]."); | ||
jsTestIsAsync = true; | ||
|
||
let quad = new DOMQuad(); | ||
quad.p1.foo = 1; | ||
quad.p2.foo = 2; | ||
quad.p3.foo = 3; | ||
quad.p4.foo = 4; | ||
|
||
shouldBe("quad.p1.foo", "1"); | ||
shouldBe("quad.p2.foo", "2"); | ||
shouldBe("quad.p3.foo", "3"); | ||
shouldBe("quad.p4.foo", "4"); | ||
|
||
gc(); | ||
|
||
shouldBe("quad.p1.foo", "1"); | ||
shouldBe("quad.p2.foo", "2"); | ||
shouldBe("quad.p3.foo", "3"); | ||
shouldBe("quad.p4.foo", "4"); | ||
|
||
setTimeout(function() { | ||
gc(); | ||
|
||
shouldBe("quad.p1.foo", "1"); | ||
shouldBe("quad.p2.foo", "2"); | ||
shouldBe("quad.p3.foo", "3"); | ||
shouldBe("quad.p4.foo", "4"); | ||
|
||
finishJSTest(); | ||
}, 0); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters