Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
The computed value of line-height:normal is incorrect
https://bugs.webkit.org/show_bug.cgi?id=133744 Patch by Sylvain Galineau <galineau@adobe.com> on 2015-01-26 Reviewed by Dean Jackson. Source/WebCore: Use font's line spacing as computed line-height value when specified value is 'normal'. This behavior is compatible with all other engines. No new tests; all existing tests are updated to reflect the new computed value. * css/CSSComputedStyleDeclaration.cpp: (WebCore::lineHeightFromStyle): If line-height wasn't set, use the font's line spacing (same as Blink). LayoutTests: line-height:normal now computes to a length value. This patch updates the tests to reflect the new computed value, as needed. * css3/calc/line-height-expected.txt: * editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt: * fast/css/font-calculated-value-expected.txt: * fast/css/font-calculated-value.html: * fast/css/font-shorthand-from-longhands-expected.txt: * fast/css/font-shorthand-from-longhands.html: * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-font-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * fast/css/getComputedStyle/script-tests/computed-style-font.js: * fast/css/line-height-text-autosizing-expected.txt: * fast/css/line-height-text-autosizing.html: * fast/ruby/ruby-line-height-expected.txt: * fast/ruby/script-tests/ruby-line-height.js: * media/track/track-cue-rendering-on-resize-expected.txt: * media/track/track-cue-rendering-on-resize.html: * platform/mac-mavericks/platform/mac/editing/attributed-string/anchor-element-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/basic-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/font-size-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/font-style-variant-effect-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/font-weight-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/letter-spacing-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/text-decorations-expected.txt: * platform/mac-mavericks/platform/mac/editing/attributed-string/vertical-align-expected.txt: * platform/mac/editing/attributed-string/anchor-element-expected.txt: * platform/mac/editing/attributed-string/basic-expected.txt: * platform/mac/editing/attributed-string/font-size-expected.txt: * platform/mac/editing/attributed-string/font-style-variant-effect-expected.txt: * platform/mac/editing/attributed-string/font-weight-expected.txt: * platform/mac/editing/attributed-string/letter-spacing-expected.txt: * platform/mac/editing/attributed-string/text-decorations-expected.txt: * platform/mac/editing/attributed-string/vertical-align-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/158909@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
975 additions
and 260 deletions.
- +44 −0 LayoutTests/ChangeLog
- +1 −1 LayoutTests/css3/calc/line-height-expected.txt
- +1 −1 LayoutTests/editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt
- +1 −1 LayoutTests/fast/css/font-calculated-value-expected.txt
- +1 −1 LayoutTests/fast/css/font-calculated-value.html
- +8 −8 LayoutTests/fast/css/font-shorthand-from-longhands-expected.txt
- +8 −8 LayoutTests/fast/css/font-shorthand-from-longhands.html
- +1 −1 LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt
- +52 −52 LayoutTests/fast/css/getComputedStyle/computed-style-font-expected.txt
- +1 −1 LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
- +52 −52 LayoutTests/fast/css/getComputedStyle/script-tests/computed-style-font.js
- +1 −1 LayoutTests/fast/css/line-height-text-autosizing-expected.txt
- +1 −1 LayoutTests/fast/css/line-height-text-autosizing.html
- +3 −3 LayoutTests/fast/ruby/ruby-line-height-expected.txt
- +3 −3 LayoutTests/fast/ruby/script-tests/ruby-line-height.js
- +1 −1 LayoutTests/media/track/track-cue-rendering-on-resize-expected.txt
- +1 −1 LayoutTests/media/track/track-cue-rendering-on-resize.html
- +1 −1 ...utTests/platform/mac-mavericks/platform/mac/editing/attributed-string/anchor-element-expected.txt
- +1 −1 LayoutTests/platform/mac-mavericks/platform/mac/editing/attributed-string/basic-expected.txt
- +324 −1 LayoutTests/platform/mac-mavericks/platform/mac/editing/attributed-string/font-size-expected.txt
- +1 −1 ...tform/mac-mavericks/platform/mac/editing/attributed-string/font-style-variant-effect-expected.txt
- +1 −1 LayoutTests/platform/mac-mavericks/platform/mac/editing/attributed-string/font-weight-expected.txt
- +1 −1 ...utTests/platform/mac-mavericks/platform/mac/editing/attributed-string/letter-spacing-expected.txt
- +1 −1 ...Tests/platform/mac-mavericks/platform/mac/editing/attributed-string/text-decorations-expected.txt
- +58 −1 ...utTests/platform/mac-mavericks/platform/mac/editing/attributed-string/vertical-align-expected.txt
- +1 −1 LayoutTests/platform/mac/editing/attributed-string/anchor-element-expected.txt
- +1 −1 LayoutTests/platform/mac/editing/attributed-string/basic-expected.txt
- +324 −73 LayoutTests/platform/mac/editing/attributed-string/font-size-expected.txt
- +1 −1 LayoutTests/platform/mac/editing/attributed-string/font-style-variant-effect-expected.txt
- +1 −1 LayoutTests/platform/mac/editing/attributed-string/font-weight-expected.txt
- +1 −1 LayoutTests/platform/mac/editing/attributed-string/letter-spacing-expected.txt
- +1 −1 LayoutTests/platform/mac/editing/attributed-string/text-decorations-expected.txt
- +58 −33 LayoutTests/platform/mac/editing/attributed-string/vertical-align-expected.txt
- +2 −2 LayoutTests/svg/css/getComputedStyle-basic-expected.txt
- +15 −0 Source/WebCore/ChangeLog
- +2 −2 Source/WebCore/css/CSSComputedStyleDeclaration.cpp
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
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
@@ -33,7 +33,7 @@ Pasted content: | ||
| face="Verdana" | ||
| "hello " | ||
| <br> | ||
| style="font-family: Helvetica; line-height: 18px;" | ||
| <font> | ||
| face="Verdana" | ||
| "worldWebKit<#selection-caret>" |
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
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
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
@@ -50,7 +50,7 @@ height: 576px; | ||
image-rendering: auto; | ||
left: auto; | ||
letter-spacing: normal; | ||
line-height: 18px; | ||
list-style-image: none; | ||
list-style-position: outside; | ||
list-style-type: disc; | ||
Oops, something went wrong.