<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[247669] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/247669">247669</a></dd>
<dt>Author</dt> <dd>zalan@apple.com</dd>
<dt>Date</dt> <dd>2019-07-20 11:53:57 -0700 (Sat, 20 Jul 2019)</dd>
</dl>

<h3>Log Message</h3>
<pre>[LFC][TFC] Introduce table formatting context.
https://bugs.webkit.org/show_bug.cgi?id=199979
<rdar://problem/53346292>

Reviewed by Antti Koivisto.

Add the basic class structure for the table formatting context.
https://www.w3.org/TR/CSS22/tables.html

* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:
* layout/FormattingState.h:
(WebCore::Layout::FormattingState::isTableFormattingState const):
* layout/tableformatting/TableFormattingContext.cpp: Added.
(WebCore::Layout::TableFormattingContext::TableFormattingContext):
(WebCore::Layout::TableFormattingContext::layout const):
* layout/tableformatting/TableFormattingContext.h: Added.
* layout/tableformatting/TableFormattingState.cpp: Added.
(WebCore::Layout::TableFormattingState::TableFormattingState):
(WebCore::Layout::TableFormattingState::~TableFormattingState):
* layout/tableformatting/TableFormattingState.h: Added.
* layout/tableformatting/TableInvalidation.cpp: Added.
(WebCore::Layout::TableInvalidation::invalidate):
* layout/tableformatting/TableInvalidation.h: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreSourcestxt">trunk/Source/WebCore/Sources.txt</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorelayoutFormattingStateh">trunk/Source/WebCore/layout/FormattingState.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/Source/WebCore/layout/tableformatting/</li>
<li><a href="#trunkSourceWebCorelayouttableformattingTableFormattingContextcpp">trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.cpp</a></li>
<li><a href="#trunkSourceWebCorelayouttableformattingTableFormattingContexth">trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.h</a></li>
<li><a href="#trunkSourceWebCorelayouttableformattingTableFormattingStatecpp">trunk/Source/WebCore/layout/tableformatting/TableFormattingState.cpp</a></li>
<li><a href="#trunkSourceWebCorelayouttableformattingTableFormattingStateh">trunk/Source/WebCore/layout/tableformatting/TableFormattingState.h</a></li>
<li><a href="#trunkSourceWebCorelayouttableformattingTableInvalidationcpp">trunk/Source/WebCore/layout/tableformatting/TableInvalidation.cpp</a></li>
<li><a href="#trunkSourceWebCorelayouttableformattingTableInvalidationh">trunk/Source/WebCore/layout/tableformatting/TableInvalidation.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (247668 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2019-07-20 18:52:15 UTC (rev 247668)
+++ trunk/Source/WebCore/ChangeLog      2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -1,5 +1,32 @@
</span><span class="cx"> 2019-07-20  Zalan Bujtas  <zalan@apple.com>
</span><span class="cx"> 
</span><ins>+        [LFC][TFC] Introduce table formatting context.
+        https://bugs.webkit.org/show_bug.cgi?id=199979
+        <rdar://problem/53346292>
+
+        Reviewed by Antti Koivisto.
+
+        Add the basic class structure for the table formatting context.
+        https://www.w3.org/TR/CSS22/tables.html
+
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * layout/FormattingState.h:
+        (WebCore::Layout::FormattingState::isTableFormattingState const):
+        * layout/tableformatting/TableFormattingContext.cpp: Added.
+        (WebCore::Layout::TableFormattingContext::TableFormattingContext):
+        (WebCore::Layout::TableFormattingContext::layout const):
+        * layout/tableformatting/TableFormattingContext.h: Added.
+        * layout/tableformatting/TableFormattingState.cpp: Added.
+        (WebCore::Layout::TableFormattingState::TableFormattingState):
+        (WebCore::Layout::TableFormattingState::~TableFormattingState):
+        * layout/tableformatting/TableFormattingState.h: Added.
+        * layout/tableformatting/TableInvalidation.cpp: Added.
+        (WebCore::Layout::TableInvalidation::invalidate):
+        * layout/tableformatting/TableInvalidation.h: Added.
+
+2019-07-20  Zalan Bujtas  <zalan@apple.com>
+
</ins><span class="cx">         [LFC][IFC] Add support for mid-word break.
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=199976
</span><span class="cx">         <rdar://problem/53337349>
</span></span></pre></div>
<a id="trunkSourceWebCoreSourcestxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Sources.txt (247668 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Sources.txt 2019-07-20 18:52:15 UTC (rev 247668)
+++ trunk/Source/WebCore/Sources.txt    2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -1416,6 +1416,9 @@
</span><span class="cx"> layout/layouttree/LayoutLineBreakBox.cpp
</span><span class="cx"> layout/layouttree/LayoutReplaced.cpp
</span><span class="cx"> layout/layouttree/LayoutTreeBuilder.cpp
</span><ins>+layout/tableformatting/TableFormattingContext.cpp
+layout/tableformatting/TableFormattingState.cpp
+layout/tableformatting/TableInvalidation.cpp
</ins><span class="cx"> 
</span><span class="cx"> loader/AdClickAttribution.cpp
</span><span class="cx"> loader/CanvasActivityRecord.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (247668 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj   2019-07-20 18:52:15 UTC (rev 247668)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj      2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -9181,6 +9181,12 @@
</span><span class="cx">          6FB47E612277425A00C7BCB0 /* InlineLineBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InlineLineBox.h; sourceTree = "<group>"; };
</span><span class="cx">          6FB5E212221F2447003989CF /* ContentChangeObserver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ContentChangeObserver.h; sourceTree = "<group>"; };
</span><span class="cx">          6FBB860520B464B600DAD938 /* FormattingContextGeometry.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FormattingContextGeometry.cpp; sourceTree = "<group>"; };
</span><ins>+               6FC5CA9222E3599300B13E11 /* TableFormattingState.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TableFormattingState.cpp; sourceTree = "<group>"; };
+               6FC5CA9322E3599300B13E11 /* TableInvalidation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TableInvalidation.h; sourceTree = "<group>"; };
+               6FC5CA9422E3599400B13E11 /* TableFormattingContext.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TableFormattingContext.cpp; sourceTree = "<group>"; };
+               6FC5CA9522E3599400B13E11 /* TableFormattingContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TableFormattingContext.h; sourceTree = "<group>"; };
+               6FC5CA9622E3599500B13E11 /* TableFormattingState.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TableFormattingState.h; sourceTree = "<group>"; };
+               6FC5CA9722E3599500B13E11 /* TableInvalidation.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TableInvalidation.cpp; sourceTree = "<group>"; };
</ins><span class="cx">           6FCE1A1822618AB3004F0343 /* DisplayRun.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DisplayRun.h; sourceTree = "<group>"; };
</span><span class="cx">          6FD9CD52227E21C800E53957 /* DisplayRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DisplayRect.h; sourceTree = "<group>"; };
</span><span class="cx">          6FE198132178397B00446F08 /* InlineLineBreaker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InlineLineBreaker.cpp; sourceTree = "<group>"; };
</span><span class="lines">@@ -16349,6 +16355,7 @@
</span><span class="cx">                          6FCFC055212DACC2007695D2 /* floats */,
</span><span class="cx">                          115CFA9A208BC140001E6991 /* inlineformatting */,
</span><span class="cx">                          115CFA90208B9441001E6991 /* layouttree */,
</span><ins>+                               6FC5CA9122E3593300B13E11 /* tableformatting */,
</ins><span class="cx">                           115CFA69208AF7D0001E6991 /* FormattingContext.cpp */,
</span><span class="cx">                          115CFA68208AF7D0001E6991 /* FormattingContext.h */,
</span><span class="cx">                          6FBB860520B464B600DAD938 /* FormattingContextGeometry.cpp */,
</span><span class="lines">@@ -20442,6 +20449,19 @@
</span><span class="cx">                  path = angle;
</span><span class="cx">                  sourceTree = "<group>";
</span><span class="cx">          };
</span><ins>+               6FC5CA9122E3593300B13E11 /* tableformatting */ = {
+                       isa = PBXGroup;
+                       children = (
+                               6FC5CA9422E3599400B13E11 /* TableFormattingContext.cpp */,
+                               6FC5CA9522E3599400B13E11 /* TableFormattingContext.h */,
+                               6FC5CA9222E3599300B13E11 /* TableFormattingState.cpp */,
+                               6FC5CA9622E3599500B13E11 /* TableFormattingState.h */,
+                               6FC5CA9722E3599500B13E11 /* TableInvalidation.cpp */,
+                               6FC5CA9322E3599300B13E11 /* TableInvalidation.h */,
+                       );
+                       path = tableformatting;
+                       sourceTree = "<group>";
+               };
</ins><span class="cx">           6FCFC055212DACC2007695D2 /* floats */ = {
</span><span class="cx">                  isa = PBXGroup;
</span><span class="cx">                  children = (
</span></span></pre></div>
<a id="trunkSourceWebCorelayoutFormattingStateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/layout/FormattingState.h (247668 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/FormattingState.h    2019-07-20 18:52:15 UTC (rev 247668)
+++ trunk/Source/WebCore/layout/FormattingState.h       2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -57,11 +57,12 @@
</span><span class="cx"> 
</span><span class="cx">     bool isBlockFormattingState() const { return m_type == Type::Block; }
</span><span class="cx">     bool isInlineFormattingState() const { return m_type == Type::Inline; }
</span><ins>+    bool isTableFormattingState() const { return m_type == Type::Table; }
</ins><span class="cx"> 
</span><span class="cx">     LayoutState& layoutState() const { return m_layoutState; }
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><del>-    enum class Type { Block, Inline };
</del><ins>+    enum class Type { Block, Inline, Table };
</ins><span class="cx">     FormattingState(Ref<FloatingState>&&, Type, LayoutState&);
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCorelayouttableformattingTableFormattingContextcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.cpp (0 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.cpp                           (rev 0)
+++ trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.cpp      2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "TableFormattingContext.h"
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include "LayoutBox.h"
+#include "TableFormattingState.h"
+#include <wtf/IsoMallocInlines.h>
+
+namespace WebCore {
+namespace Layout {
+
+WTF_MAKE_ISO_ALLOCATED_IMPL(TableFormattingContext);
+
+TableFormattingContext::TableFormattingContext(const Box& formattingContextRoot, TableFormattingState& formattingState)
+    : FormattingContext(formattingContextRoot, formattingState)
+{
+}
+
+void TableFormattingContext::layout() const
+{
+}
+
+}
+}
+
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebCorelayouttableformattingTableFormattingContexth"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.h (0 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.h                             (rev 0)
+++ trunk/Source/WebCore/layout/tableformatting/TableFormattingContext.h        2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include "FormattingContext.h"
+#include "TableFormattingState.h"
+#include <wtf/IsoMalloc.h>
+
+namespace WebCore {
+namespace Layout {
+
+// This class implements the layout logic for table formatting contexts.
+// https://www.w3.org/TR/CSS22/tables.html
+class TableFormattingContext : public FormattingContext {
+    WTF_MAKE_ISO_ALLOCATED(TableFormattingContext);
+public:
+    TableFormattingContext(const Box& formattingContextRoot, TableFormattingState&);
+    void layout() const override;
+};
+
+}
+}
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebCorelayouttableformattingTableFormattingStatecpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/layout/tableformatting/TableFormattingState.cpp (0 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/tableformatting/TableFormattingState.cpp                             (rev 0)
+++ trunk/Source/WebCore/layout/tableformatting/TableFormattingState.cpp        2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "TableFormattingState.h"
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include <wtf/IsoMallocInlines.h>
+
+namespace WebCore {
+namespace Layout {
+
+WTF_MAKE_ISO_ALLOCATED_IMPL(TableFormattingState);
+
+TableFormattingState::TableFormattingState(Ref<FloatingState>&& floatingState, LayoutState& layoutState)
+    : FormattingState(WTFMove(floatingState), Type::Table, layoutState)
+{
+}
+
+TableFormattingState::~TableFormattingState()
+{
+}
+
+}
+}
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebCorelayouttableformattingTableFormattingStateh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/layout/tableformatting/TableFormattingState.h (0 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/tableformatting/TableFormattingState.h                               (rev 0)
+++ trunk/Source/WebCore/layout/tableformatting/TableFormattingState.h  2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include "FormattingState.h"
+#include <wtf/IsoMalloc.h>
+
+namespace WebCore {
+namespace Layout {
+
+// TableFormattingState holds the state for a particular table formatting context tree.
+class TableFormattingState : public FormattingState {
+    WTF_MAKE_ISO_ALLOCATED(TableFormattingState);
+public:
+    TableFormattingState(Ref<FloatingState>&&, LayoutState&);
+    virtual ~TableFormattingState();
+};
+
+}
+}
+
+SPECIALIZE_TYPE_TRAITS_LAYOUT_FORMATTING_STATE(TableFormattingState, isTableFormattingState())
+
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebCorelayouttableformattingTableInvalidationcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/layout/tableformatting/TableInvalidation.cpp (0 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/tableformatting/TableInvalidation.cpp                                (rev 0)
+++ trunk/Source/WebCore/layout/tableformatting/TableInvalidation.cpp   2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "TableInvalidation.h"
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include "Invalidation.h"
+#include "LayoutBox.h"
+#include "LayoutState.h"
+#include "TableFormattingState.h"
+#include <wtf/IsoMallocInlines.h>
+
+namespace WebCore {
+namespace Layout {
+
+WTF_MAKE_ISO_ALLOCATED_IMPL(TableInvalidation);
+
+InvalidationResult TableInvalidation::invalidate(const Box& layoutBox, StyleDiff, LayoutState& layoutState, TableFormattingState&)
+{
+    layoutState.markNeedsUpdate(layoutBox, LayoutState::UpdateType::All);
+    return { nullptr };
+}
+
+}
+}
+#endif
</ins></span></pre></div>
<a id="trunkSourceWebCorelayouttableformattingTableInvalidationh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/layout/tableformatting/TableInvalidation.h (0 => 247669)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/layout/tableformatting/TableInvalidation.h                          (rev 0)
+++ trunk/Source/WebCore/layout/tableformatting/TableInvalidation.h     2019-07-20 18:53:57 UTC (rev 247669)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include <wtf/IsoMalloc.h>
+
+namespace WebCore {
+
+namespace Layout {
+
+class Box;
+class TableFormattingState;
+struct InvalidationResult;
+class LayoutState;
+enum class StyleDiff;
+
+// This class implements box invalidation for table formatting context.
+class TableInvalidation {
+    WTF_MAKE_ISO_ALLOCATED(TableInvalidation);
+public:
+    static InvalidationResult invalidate(const Box&, StyleDiff, LayoutState&, TableFormattingState&);
+};
+
+}
+}
+#endif
</ins></span></pre>
</div>
</div>

</body>
</html>