[webkit-changes] [WebKit/WebKit] e9aef0: Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in CSS...

Chris Dumez noreply at github.com
Fri Jan 24 19:28:57 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e9aef032fc07b35f8ea8a5324102111c3b99b6ed
      https://github.com/WebKit/WebKit/commit/e9aef032fc07b35f8ea8a5324102111c3b99b6ed
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2025-01-24 (Fri, 24 Jan 2025)

  Changed paths:
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/css/MutableStyleProperties.cpp
    M Source/WebCore/css/ShorthandSerializer.cpp
    M Source/WebCore/css/StylePropertyShorthand.cpp
    M Source/WebCore/css/StylePropertyShorthand.h
    M Source/WebCore/css/parser/CSSPropertyParser.cpp
    M Source/WebCore/css/process-css-properties.py

  Log Message:
  -----------
  Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in CSS code
https://bugs.webkit.org/show_bug.cgi?id=286066
rdar://143488112

Reviewed by Sam Weinig.

This tested as performance neutral on Speedometer and MemBuster.

* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::getCSSPropertyValuesFor2SidesShorthand const):
(WebCore::ComputedStyleExtractor::getCSSPropertyValuesFor4SidesShorthand const):
(WebCore::ComputedStyleExtractor::getBackgroundShorthandValue const):
(WebCore::ComputedStyleExtractor::getMaskShorthandValue const):
* Source/WebCore/css/MutableStyleProperties.cpp:
(WebCore::MutableStyleProperties::removeShorthandProperty):
(WebCore::MutableStyleProperties::setProperty):
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::ShorthandSerializer::longhandProperty const):
(WebCore::ShorthandSerializer::longhandValue const):
(WebCore::LayerValues::set):
(WebCore::LayerValues::valueID const):
* Source/WebCore/css/StylePropertyShorthand.cpp:
(WebCore::transitionShorthandForParsing):
* Source/WebCore/css/StylePropertyShorthand.h:
(WebCore::StylePropertyShorthand::StylePropertyShorthand):
(WebCore::StylePropertyShorthand::begin const):
(WebCore::StylePropertyShorthand::end const):
(WebCore::StylePropertyShorthand::length const):
(WebCore::StylePropertyShorthand::properties const):
(WebCore::StylePropertyShorthand::propertiesSpan const): Deleted.
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::consumeFont):
(WebCore::CSSPropertyParser::consumeShorthandGreedily):
(WebCore::CSSPropertyParser::consume2ValueShorthand):
(WebCore::CSSPropertyParser::consume4ValueShorthand):
(WebCore::CSSPropertyParser::consumeAnimationShorthand):
(WebCore::CSSPropertyParser::consumeBackgroundShorthand):
(WebCore::CSSPropertyParser::consumeGridItemPositionShorthand):
(WebCore::CSSPropertyParser::consumeAlignShorthand):
* Source/WebCore/css/process-css-properties.py:

Canonical link: https://commits.webkit.org/289376@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list