|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2022-03-24 Oriol Brufau <obrufau@igalia.com> |
| 2 |
|
| 3 |
[css] Turn -webkit-text-orientation into a legacy shorthand |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=238356 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
`-webkit-text-orientation` and `text-orientation` were both implemented |
| 9 |
as longhands, just with a `related-property` flag so that declaration |
| 10 |
blocks with both of them would use the one appearing last. |
| 11 |
|
| 12 |
However, the logic for `related-property` wasn't always working well. |
| 13 |
In bug 238350 I plan to merge it with shouldApplyPropertyInParseOrder(), |
| 14 |
which has the same purpose and works better. But it's not suitable for |
| 15 |
high priority properties like `text-orientation`. |
| 16 |
|
| 17 |
So this patch turns `-webkit-text-orientation` into a shorthand that |
| 18 |
expands into `text-orientation`. |
| 19 |
|
| 20 |
`-webkit-text-orientation` continues accepting the legacy value |
| 21 |
`sideways-right`, which is now mapped into `sideways` at parse time. |
| 22 |
Previously this happened at computed-value time, but it implied that |
| 23 |
serializing `text-decoration` could yield an invalid value. |
| 24 |
|
| 25 |
* css/CSSPrimitiveValueMappings.h: |
| 26 |
(WebCore::CSSPrimitiveValue::operator TextOrientation const): |
| 27 |
Remove mapping of `sideways-right` into `sideways`, this is now |
| 28 |
done at parse time. Also remove mapping of `vertical-right` into `mixed` |
| 29 |
since `vertical-right` is a remnant of the past which has not been |
| 30 |
considered valid syntax for years. |
| 31 |
|
| 32 |
* css/CSSProperties.json: |
| 33 |
Turn `-webkit-text-orientation` into a shorthand of `text-orientation`. |
| 34 |
Remove their `related-property` flags and a remnant of `vertical-right`. |
| 35 |
|
| 36 |
* css/StyleProperties.cpp: |
| 37 |
(WebCore::StyleProperties::getPropertyValue const): |
| 38 |
Add code for serializing the `-webkit-text-orientation` shorthand. |
| 39 |
|
| 40 |
* css/parser/CSSParserFastPaths.cpp: |
| 41 |
(WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): |
| 42 |
(WebCore::CSSParserFastPaths::isKeywordPropertyID): |
| 43 |
Remove `-webkit-text-orientation` from code which is only relevant for |
| 44 |
longhands. |
| 45 |
|
| 46 |
* css/parser/CSSPropertyParser.cpp: |
| 47 |
(WebCore::CSSPropertyParser::consumeLegacyTextOrientation): |
| 48 |
(WebCore::CSSPropertyParser::parseShorthand): |
| 49 |
Add parsing logic for `-webkit-text-orientation` as a shorthand. |
| 50 |
|
| 51 |
* css/parser/CSSPropertyParser.h: |
| 52 |
Add parsing logic for `-webkit-text-orientation` as a shorthand. |
| 53 |
|
| 54 |
* style/StyleBuilderCustom.h: |
| 55 |
(WebCore::Style::BuilderCustom::applyValueWebkitTextOrientation): Deleted. |
| 56 |
Remove `-webkit-text-orientation` from code which is only relevant for |
| 57 |
longhands. |
| 58 |
|
| 1 |
2022-03-23 Youenn Fablet <youenn@apple.com> |
59 |
2022-03-23 Youenn Fablet <youenn@apple.com> |
| 2 |
|
60 |
|
| 3 |
VideoFrame does not need to inherit from MediaSample |
61 |
VideoFrame does not need to inherit from MediaSample |