[webkit-changes] [WebKit/WebKit] ca028c: TransformOperation::OperationType enum should be a...

Antoine Quint noreply at github.com
Mon Dec 5 13:31:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ca028cc950803580b8107440b6ed4b490dccb013
      https://github.com/WebKit/WebKit/commit/ca028cc950803580b8107440b6ed4b490dccb013
  Author: Antoine Quint <graouts at apple.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M Source/WebCore/animation/CSSPropertyAnimation.cpp
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/css/TransformFunctions.cpp
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
    M Source/WebCore/platform/graphics/transforms/IdentityTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/Matrix3DTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/MatrixTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/PerspectiveTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/RotateTransformOperation.cpp
    M Source/WebCore/platform/graphics/transforms/RotateTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/ScaleTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/SkewTransformOperation.h
    M Source/WebCore/platform/graphics/transforms/TransformOperation.cpp
    M Source/WebCore/platform/graphics/transforms/TransformOperation.h
    M Source/WebCore/platform/graphics/transforms/TransformOperations.h
    M Source/WebCore/platform/graphics/transforms/TranslateTransformOperation.h
    M Source/WebCore/rendering/RenderLayer.cpp
    M Source/WebCore/rendering/style/RenderStyle.cpp

  Log Message:
  -----------
  TransformOperation::OperationType enum should be an `enum class`
https://bugs.webkit.org/show_bug.cgi?id=248762

Reviewed by Simon Fraser.

* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::containsRotation):
(WebCore::KeyframeEffect::computeTransformedExtentViaTransformList const):
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::computedTransform):
* Source/WebCore/css/TransformFunctions.cpp:
(WebCore::transformOperationType):
(WebCore::translateForValue):
(WebCore::scaleForValue):
(WebCore::rotateForValue):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::isTransformTypeTransformationMatrix):
(WebCore::isTransformTypeFloatPoint3D):
(WebCore::isTransformTypeNumber):
(WebCore::getTransformFunctionValue):
(WebCore::getValueFunctionNameForTransformOperation):
(WebCore::GraphicsLayerCA::appendToUncommittedAnimations):
(WebCore::hasBig3DRotation):
(WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
(WebCore::GraphicsLayerCA::setTransformAnimationEndpoints):
(WebCore::GraphicsLayerCA::setTransformAnimationKeyframes):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:
* Source/WebCore/platform/graphics/transforms/IdentityTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/Matrix3DTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/MatrixTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/PerspectiveTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/RotateTransformOperation.cpp:
(WebCore::RotateTransformOperation::blend):
* Source/WebCore/platform/graphics/transforms/RotateTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/ScaleTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/SkewTransformOperation.h:
* Source/WebCore/platform/graphics/transforms/TransformOperation.cpp:
(WebCore::operator<<):
(WebCore::TransformOperation::sharedPrimitiveType const):
* Source/WebCore/platform/graphics/transforms/TransformOperation.h:
(WebCore::TransformOperation::TransformOperation):
(WebCore::TransformOperation::type const):
(WebCore::TransformOperation::primitiveType const):
(WebCore::TransformOperation::is3DOperation const):
(WebCore::TransformOperation::isRotateTransformOperationType const):
(WebCore::TransformOperation::isScaleTransformOperationType const):
(WebCore::TransformOperation::isSkewTransformOperationType const):
(WebCore::TransformOperation::isTranslateTransformOperationType const):
(): Deleted.
* Source/WebCore/platform/graphics/transforms/TransformOperations.h:
(WebCore::TransformOperations::hasMatrixOperation const):
(WebCore::SharedPrimitivesPrefix::primitives const):
* Source/WebCore/platform/graphics/transforms/TranslateTransformOperation.h:
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects const):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::setPageScaleTransform):

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




More information about the webkit-changes mailing list