RESOLVED FIXED 157071
RenderMathOperator: Move calculation of preferred width into MathOperator
https://bugs.webkit.org/show_bug.cgi?id=157071
Summary RenderMathOperator: Move calculation of preferred width into MathOperator
Frédéric Wang (:fredw)
Reported 2016-04-27 07:18:18 PDT
I'm extracting more changes from bug 152244.
Attachments
Patch (11.91 KB, patch)
2016-04-27 07:32 PDT, Frédéric Wang (:fredw)
no flags
Patch (12.77 KB, patch)
2016-05-09 00:51 PDT, Frédéric Wang (:fredw)
no flags
Patch (12.86 KB, patch)
2016-05-11 01:53 PDT, Frédéric Wang (:fredw)
no flags
Patch for EWS testing (80.40 KB, patch)
2016-05-11 02:19 PDT, Frédéric Wang (:fredw)
no flags
Patch (12.56 KB, patch)
2016-05-13 09:42 PDT, Frédéric Wang (:fredw)
no flags
Patch (12.52 KB, patch)
2016-06-09 07:57 PDT, Frédéric Wang (:fredw)
bfulgham: review+
Frédéric Wang (:fredw)
Comment 1 2016-04-27 07:32:50 PDT
Frédéric Wang (:fredw)
Comment 2 2016-05-09 00:51:53 PDT
Frédéric Wang (:fredw)
Comment 3 2016-05-11 01:53:34 PDT
Created attachment 278602 [details] Patch Minor change: s/maximumGlyphWidth/setMaxPreferredWidth/ in the ASSERT of MathOperator::calculateStretchyData.
Frédéric Wang (:fredw)
Comment 4 2016-05-11 02:19:12 PDT
Created attachment 278606 [details] Patch for EWS testing
Manuel Rego Casasnovas
Comment 5 2016-05-13 08:21:17 PDT
Comment on attachment 278602 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=278602&action=review LGTM just some minor nits. > Source/WebCore/ChangeLog:11 > + (WebCore::MathOperator::MathOperator): Initialize m_maxPreferredWidth Nit: Missing dot at the end. > Source/WebCore/ChangeLog:21 > + (WebCore::RenderMathMLOperator::computePreferredLogicalWidths): This function performs bad Nit: s/bad/wrong/ > Source/WebCore/rendering/mathml/MathOperator.cpp:264 > +void MathOperator::calculateStretchyData(const RenderStyle& style, bool setMaxPreferredWidth, LayoutUnit targetSize) A small suggestion, maybe call the argument "calculateMaxPreferredWidth". > Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp:270 > + // FIXME: We should not using stretchSize during the preferred width calculation nor should we leave logical width dirty (http://webkit.org/b/152244). Nit: s/using/use/
Frédéric Wang (:fredw)
Comment 6 2016-05-13 09:42:55 PDT
Created attachment 278842 [details] Patch Addressing Manuel's comments...
Frédéric Wang (:fredw)
Comment 7 2016-06-09 07:57:32 PDT
Brent Fulgham
Comment 8 2016-06-09 13:32:50 PDT
Comment on attachment 280918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=280918&action=review Looks like a nice clean-up. r=me. > Source/WebCore/rendering/mathml/MathOperator.h:93 > + LayoutUnit m_maxPreferredWidth = 0; We prefer the C++11 initializer syntax, but I guess you are being consistent with the other things in this file.
Frédéric Wang (:fredw)
Comment 9 2016-06-09 13:49:24 PDT
Note You need to log in before you can comment on or make changes to this bug.