⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 282380 in webkit


Ignore:
Timestamp:
Sep 14, 2021, 12:18:22 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Fix bug in calc functions sin/cos/tan
​https://bugs.webkit.org/show_bug.cgi?id=230133

Patch by Nikos Mouchtaris <Nikos Mouchtaris> on 2021-09-14
Reviewed by Myles Maxfield.

WPTs added in seperate patch: ​https://bugs.webkit.org/show_bug.cgi?id=230129.

  • css/calc/CSSCalcOperationNode.cpp:

(WebCore::CSSCalcOperationNode::simplifyNode):
Fix bug where sin,cos,tan functions are applied twice when root.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r282379 r282380  
     12021-09-14  Nikos Mouchtaris  <nmouchtaris@apple.com>
     2
     3        Fix bug in calc functions sin/cos/tan
     4        https://bugs.webkit.org/show_bug.cgi?id=230133
     5
     6        Reviewed by Myles Maxfield.
     7
     8        WPTs added in seperate patch: https://bugs.webkit.org/show_bug.cgi?id=230129.
     9
     10        * css/calc/CSSCalcOperationNode.cpp:
     11        (WebCore::CSSCalcOperationNode::simplifyNode):
     12        Fix bug where sin,cos,tan functions are applied twice when root.
     13
    1142021-09-13  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/css/calc/CSSCalcOperationNode.cpp

    r282162 r282380  
    646646            calcOperationNode.combineChildren();
    647647       
    648         if (calcOperationNode.isTrigNode())
     648        if (calcOperationNode.isTrigNode() && depth)
    649649            calcOperationNode.combineChildren();
    650650       
Note: See TracChangeset for help on using the changeset viewer.