RESOLVED FIXED 164313
Remove RenderMathMLOperator::shouldAllowStretching
https://bugs.webkit.org/show_bug.cgi?id=164313
Summary Remove RenderMathMLOperator::shouldAllowStretching
Frédéric Wang (:fredw)
Reported 2016-11-02 02:24:15 PDT
This is a legacy function from the old MathML code. Now that we support large operator in displaystyle, the name is confusing since it is not just vertical/horizontal "stretchy" operators any more. I believe that now we can just expand it inside RenderMathMLOperator::updateMathOperator() by doing something like: if (isStretchy()) type = isVertical() ? MathOperator::Type::VerticalOperator : MathOperator::Type::HorizontalOperator; else if (textContent() && isLargeOperatorInDisplayStyle()) type = MathOperator::Type::DisplayOperator; else type = MathOperator::Type::NormalOperator; and then the condition in RenderMathMLOperator::useMathOperator() will just become m_mathOperator.type() != MathOperator::Type::NormalOperator || textContent() == minusSign where we add the accessor MathOperator::type() { return m_operatorType; }
Attachments
Patch (4.32 KB, patch)
2016-11-06 05:29 PST, Frédéric Wang (:fredw)
darin: review+
Patch (4.56 KB, patch)
2016-11-10 04:02 PST, Frédéric Wang (:fredw)
buildbot: commit-queue-
Archive of layout-test-results from ews125 for ios-simulator-wk2 (deleted)
2016-11-10 06:12 PST, Build Bot
no flags
Patch (4.56 KB, patch)
2016-11-10 13:36 PST, Frédéric Wang (:fredw)
no flags
Frédéric Wang (:fredw)
Comment 1 2016-11-06 05:29:28 PST
Frédéric Wang (:fredw)
Comment 2 2016-11-10 04:02:22 PST
Build Bot
Comment 3 2016-11-10 06:12:18 PST
Comment on attachment 294359 [details] Patch Attachment 294359 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2489144 New failing tests: compositing/absolute-inside-out-of-view-fixed.html
Build Bot
Comment 4 2016-11-10 06:12:21 PST
Created attachment 294367 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Frédéric Wang (:fredw)
Comment 5 2016-11-10 13:36:30 PST
WebKit Commit Bot
Comment 6 2016-11-12 04:44:43 PST
Comment on attachment 294407 [details] Patch Clearing flags on attachment: 294407 Committed r208647: <http://trac.webkit.org/changeset/208647>
WebKit Commit Bot
Comment 7 2016-11-12 04:44:48 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.