Title: [232064] trunk/Source/WebCore
Revision
232064
Author
[email protected]
Date
2018-05-22 07:46:42 -0700 (Tue, 22 May 2018)

Log Message

Fix build without MathML
https://bugs.webkit.org/show_bug.cgi?id=185865

Patch by Olivier Blin <[email protected]> on 2018-05-22
Reviewed by Frédéric Wang.

Regression(r226654): [RenderTreeBuilder] Move MathML addChild logic to RenderTreeBuilder
https://bugs.webkit.org/show_bug.cgi?id=181443

Regression(r229694): Put the DOM in IsoHeaps
https://bugs.webkit.org/show_bug.cgi?id=183546

No new tests, build fix.

* mathml/MathMLUnknownElement.cpp:
* mathml/MathMLUnknownElement.h:
* rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::RenderTreeBuilder):
(WebCore::RenderTreeBuilder::attach):
* rendering/updating/RenderTreeBuilder.h:
* rendering/updating/RenderTreeBuilderMathML.cpp:
* rendering/updating/RenderTreeBuilderMathML.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (232063 => 232064)


--- trunk/Source/WebCore/ChangeLog	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/ChangeLog	2018-05-22 14:46:42 UTC (rev 232064)
@@ -1,3 +1,27 @@
+2018-05-22  Olivier Blin  <[email protected]>
+
+        Fix build without MathML
+        https://bugs.webkit.org/show_bug.cgi?id=185865
+
+        Reviewed by Frédéric Wang.
+
+        Regression(r226654): [RenderTreeBuilder] Move MathML addChild logic to RenderTreeBuilder
+        https://bugs.webkit.org/show_bug.cgi?id=181443
+
+        Regression(r229694): Put the DOM in IsoHeaps
+        https://bugs.webkit.org/show_bug.cgi?id=183546
+
+        No new tests, build fix.
+
+        * mathml/MathMLUnknownElement.cpp:
+        * mathml/MathMLUnknownElement.h:
+        * rendering/updating/RenderTreeBuilder.cpp:
+        (WebCore::RenderTreeBuilder::RenderTreeBuilder):
+        (WebCore::RenderTreeBuilder::attach):
+        * rendering/updating/RenderTreeBuilder.h:
+        * rendering/updating/RenderTreeBuilderMathML.cpp:
+        * rendering/updating/RenderTreeBuilderMathML.h:
+
 2018-05-22  Yacine Bandou  <[email protected]>
 
         [GStreamer] Don't set the ReadyState to HaveNothing when an error occurs in playback pipeline

Modified: trunk/Source/WebCore/mathml/MathMLUnknownElement.cpp (232063 => 232064)


--- trunk/Source/WebCore/mathml/MathMLUnknownElement.cpp	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/mathml/MathMLUnknownElement.cpp	2018-05-22 14:46:42 UTC (rev 232064)
@@ -26,6 +26,8 @@
 #include "config.h"
 #include "MathMLUnknownElement.h"
 
+#if ENABLE(MATHML)
+
 #include <wtf/IsoMallocInlines.h>
 
 namespace WebCore {
@@ -34,3 +36,4 @@
 
 } // namespace WebCore
 
+#endif // ENABLE(MATHML)

Modified: trunk/Source/WebCore/mathml/MathMLUnknownElement.h (232063 => 232064)


--- trunk/Source/WebCore/mathml/MathMLUnknownElement.h	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/mathml/MathMLUnknownElement.h	2018-05-22 14:46:42 UTC (rev 232064)
@@ -25,6 +25,8 @@
 
 #pragma once
 
+#if ENABLE(MATHML)
+
 #include "MathMLElement.h"
 
 namespace WebCore {
@@ -47,3 +49,5 @@
 };
 
 } // namespace WebCore
+
+#endif // ENABLE(MATHML)

Modified: trunk/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp (232063 => 232064)


--- trunk/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp	2018-05-22 14:46:42 UTC (rev 232064)
@@ -131,7 +131,9 @@
     , m_blockFlowBuilder(std::make_unique<BlockFlow>(*this))
     , m_inlineBuilder(std::make_unique<Inline>(*this))
     , m_svgBuilder(std::make_unique<SVG>(*this))
+#if ENABLE(MATHML)
     , m_mathMLBuilder(std::make_unique<MathML>(*this))
+#endif
     , m_continuationBuilder(std::make_unique<Continuation>(*this))
 #if ENABLE(FULLSCREEN_API)
     , m_fullScreenBuilder(std::make_unique<FullScreen>(*this))
@@ -270,10 +272,12 @@
         return;
     }
 
+#if ENABLE(MATHML)
     if (is<RenderMathMLFenced>(parent)) {
         mathMLBuilder().attach(downcast<RenderMathMLFenced>(parent), WTFMove(child), beforeChild);
         return;
     }
+#endif
 
     if (is<RenderGrid>(parent)) {
         attachToRenderGrid(downcast<RenderGrid>(parent), WTFMove(child), beforeChild);

Modified: trunk/Source/WebCore/rendering/updating/RenderTreeBuilder.h (232063 => 232064)


--- trunk/Source/WebCore/rendering/updating/RenderTreeBuilder.h	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/rendering/updating/RenderTreeBuilder.h	2018-05-22 14:46:42 UTC (rev 232064)
@@ -94,7 +94,9 @@
     class BlockFlow;
     class Inline;
     class SVG;
+#if ENABLE(MATHML)
     class MathML;
+#endif
     class Continuation;
 #if ENABLE(FULLSCREEN_API)
     class FullScreen;
@@ -110,7 +112,9 @@
     BlockFlow& blockFlowBuilder() { return *m_blockFlowBuilder; }
     Inline& inlineBuilder() { return *m_inlineBuilder; }
     SVG& svgBuilder() { return *m_svgBuilder; }
+#if ENABLE(MATHML)
     MathML& mathMLBuilder() { return *m_mathMLBuilder; }
+#endif
     Continuation& continuationBuilder() { return *m_continuationBuilder; }
 #if ENABLE(FULLSCREEN_API)
     FullScreen& fullScreenBuilder() { return *m_fullScreenBuilder; }
@@ -130,7 +134,9 @@
     std::unique_ptr<BlockFlow> m_blockFlowBuilder;
     std::unique_ptr<Inline> m_inlineBuilder;
     std::unique_ptr<SVG> m_svgBuilder;
+#if ENABLE(MATHML)
     std::unique_ptr<MathML> m_mathMLBuilder;
+#endif
     std::unique_ptr<Continuation> m_continuationBuilder;
 #if ENABLE(FULLSCREEN_API)
     std::unique_ptr<FullScreen> m_fullScreenBuilder;

Modified: trunk/Source/WebCore/rendering/updating/RenderTreeBuilderMathML.cpp (232063 => 232064)


--- trunk/Source/WebCore/rendering/updating/RenderTreeBuilderMathML.cpp	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/rendering/updating/RenderTreeBuilderMathML.cpp	2018-05-22 14:46:42 UTC (rev 232064)
@@ -26,6 +26,8 @@
 #include "config.h"
 #include "RenderTreeBuilderMathML.h"
 
+#if ENABLE(MATHML)
+
 #include "RenderMathMLFenced.h"
 #include "RenderMathMLFencedOperator.h"
 #include "RenderTreeBuilderBlock.h"
@@ -108,3 +110,5 @@
 }
 
 }
+
+#endif // ENABLE(MATHML)

Modified: trunk/Source/WebCore/rendering/updating/RenderTreeBuilderMathML.h (232063 => 232064)


--- trunk/Source/WebCore/rendering/updating/RenderTreeBuilderMathML.h	2018-05-22 13:34:03 UTC (rev 232063)
+++ trunk/Source/WebCore/rendering/updating/RenderTreeBuilderMathML.h	2018-05-22 14:46:42 UTC (rev 232064)
@@ -25,6 +25,8 @@
 
 #pragma once
 
+#if ENABLE(MATHML)
+
 #include "MathMLOperatorDictionary.h"
 #include "RenderTreeBuilder.h"
 
@@ -48,3 +50,5 @@
 };
 
 }
+
+#endif // ENABLE(MATHML)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to