Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r175363 - ASSERTION NOT REACHED because RenderStyle::setWordSpa…
…cing() does not handle a Length value of type 'Calculated'. https://bugs.webkit.org/show_bug.cgi?id=138054. Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2014-10-29 Reviewed by Zalan Bujtas. Source/WebCore: A Length of type 'Calculated' can be generated from blending two lengths of different types. Setting the wordSpacing of the render style should be handled correctly when the type of the new value is 'Calculated'. Tests: css3/calculated-word-spacing.html. Add a case for setting the render style wordSpacing to a <length> of type 'Calculated'. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::setWordSpacing): LayoutTests: Ensure the render style's wordSpacing can be set correctly when the type of the new value is 'Calculated'. The 'Calculated' Length value can result from blending two Length values of different types. And these two Length values are defined in two consecutive css animation key frames. * css3/calculated-word-spacing-expected.txt: Added. * css3/calculated-word-spacing.html: Added. Canonical link: https://commits.webkit.org/154760.173@webkitgtk/2.6 git-svn-id: https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.6@175926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
3b1e460
commit 76963fa
Showing
5 changed files
with
72 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 @@ | ||
PASS if no assert or crash in debug. |
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,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
h1 { | ||
-webkit-animation-name: spacing; | ||
-webkit-animation-duration: 1s; | ||
} | ||
@-webkit-keyframes spacing { | ||
0% { | ||
word-spacing: normal | ||
} | ||
20% { | ||
word-spacing: 100px | ||
} | ||
40% { | ||
word-spacing: 200% | ||
} | ||
60% { | ||
word-spacing: 20em | ||
} | ||
80% { | ||
word-spacing: 300% | ||
} | ||
100% { } | ||
} | ||
</style> | ||
</head> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script> | ||
<body> | ||
<h1>PASS if no assert or crash in debug.</h1> | ||
</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