Title: [282253] trunk/Source/WebCore
Revision
282253
Author
[email protected]
Date
2021-09-09 17:37:49 -0700 (Thu, 09 Sep 2021)

Log Message

Build fix for Ubuntu LTS and Debian after r282211

Some functions need to be guarded by ENABLE(LAYOUT_FORMATTING_CONTEXT)

* layout/integration/LayoutIntegrationRunIterator.cpp:
* layout/integration/LayoutIntegrationRunIterator.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (282252 => 282253)


--- trunk/Source/WebCore/ChangeLog	2021-09-10 00:28:37 UTC (rev 282252)
+++ trunk/Source/WebCore/ChangeLog	2021-09-10 00:37:49 UTC (rev 282253)
@@ -1,3 +1,12 @@
+2021-09-09  Diego Pino Garcia  <[email protected]>
+
+        Build fix for Ubuntu LTS and Debian after r282211
+
+        Some functions need to be guarded by ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+        * layout/integration/LayoutIntegrationRunIterator.cpp:
+        * layout/integration/LayoutIntegrationRunIterator.h:
+
 2021-09-09  Darin Adler  <[email protected]>
 
         Improve performance by using StringView, not "const StringView&"

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIterator.cpp (282252 => 282253)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIterator.cpp	2021-09-10 00:28:37 UTC (rev 282252)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIterator.cpp	2021-09-10 00:37:49 UTC (rev 282253)
@@ -195,6 +195,7 @@
     return { RunIteratorLegacyPath { legacyInlineTextBox } };
 }
 
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
 TextRunIterator textRunFor(const InlineContent& content, const Run& run)
 {
     return textRunFor(content, content.indexForRun(run));
@@ -205,6 +206,7 @@
     ASSERT(content.runs[runIndex].text());
     return { RunIteratorModernPath { content, runIndex } };
 }
+#endif
 
 TextRunRange textRunsFor(const RenderText& text)
 {
@@ -229,10 +231,12 @@
     return { RunIteratorLegacyPath(renderer.inlineBoxWrapper()) };
 }
 
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
 RunIterator runFor(const InlineContent& content, size_t runIndex)
 {
     return { RunIteratorModernPath { content, runIndex } };
 }
+#endif
 
 #if ENABLE(LAYOUT_FORMATTING_CONTEXT)
 const RunIteratorModernPath& PathRun::modernPath() const

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIterator.h (282252 => 282253)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIterator.h	2021-09-10 00:28:37 UTC (rev 282252)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIterator.h	2021-09-10 00:37:49 UTC (rev 282253)
@@ -201,12 +201,16 @@
 TextRunIterator firstTextRunFor(const RenderText&);
 TextRunIterator firstTextRunInTextOrderFor(const RenderText&);
 TextRunIterator textRunFor(const LegacyInlineTextBox*);
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
 TextRunIterator textRunFor(const InlineContent&, const Run&);
 TextRunIterator textRunFor(const InlineContent&, size_t runIndex);
+#endif
 TextRunRange textRunsFor(const RenderText&);
 RunIterator runFor(const RenderLineBreak&);
 RunIterator runFor(const RenderBox&);
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
 RunIterator runFor(const InlineContent&, size_t runIndex);
+#endif
 
 // -----------------------------------------------
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to