Title: [230696] trunk/Tools
Revision
230696
Author
za...@apple.com
Date
2018-04-16 19:02:06 -0700 (Mon, 16 Apr 2018)

Log Message

[LayoutReloaded] Introduce fragmentation state/context.
https://bugs.webkit.org/show_bug.cgi?id=184677

Reviewed by Antti Koivisto.

State/context for fragmented content (multicol, regions, pagination etc).

* LayoutReloaded/FormattingContext/FragmentationContext.js: Added.
(FragmentationContext):
* LayoutReloaded/FormattingState/FragmentationState.js: Added.
(FragmentationState):
(FragmentationState.prototype.formattingState):

Modified Paths

Added Paths

Diff

Modified: trunk/Tools/ChangeLog (230695 => 230696)


--- trunk/Tools/ChangeLog	2018-04-17 01:56:15 UTC (rev 230695)
+++ trunk/Tools/ChangeLog	2018-04-17 02:02:06 UTC (rev 230696)
@@ -1,3 +1,18 @@
+2018-04-16  Zalan Bujtas  <za...@apple.com>
+
+        [LayoutReloaded] Introduce fragmentation state/context.
+        https://bugs.webkit.org/show_bug.cgi?id=184677
+
+        Reviewed by Antti Koivisto.
+
+        State/context for fragmented content (multicol, regions, pagination etc).
+
+        * LayoutReloaded/FormattingContext/FragmentationContext.js: Added.
+        (FragmentationContext):
+        * LayoutReloaded/FormattingState/FragmentationState.js: Added.
+        (FragmentationState):
+        (FragmentationState.prototype.formattingState):
+
 2018-04-16  Andy Estes  <aes...@apple.com>
 
         [iOS] Enable WKPDFView by default

Added: trunk/Tools/LayoutReloaded/FormattingContext/FragmentationContext.js (0 => 230696)


--- trunk/Tools/LayoutReloaded/FormattingContext/FragmentationContext.js	                        (rev 0)
+++ trunk/Tools/LayoutReloaded/FormattingContext/FragmentationContext.js	2018-04-17 02:02:06 UTC (rev 230696)
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2018 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. ``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
+ * 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.
+ */
+
+/*
+class FragmentationContext {
+public:
+};
+*/
+class FragmentationContext {
+    constructor(fragmentationState) {
+        this.m_fragmentationState = fragmentationState;
+    }
+}

Added: trunk/Tools/LayoutReloaded/FormattingState/FragmentationState.js (0 => 230696)


--- trunk/Tools/LayoutReloaded/FormattingState/FragmentationState.js	                        (rev 0)
+++ trunk/Tools/LayoutReloaded/FormattingState/FragmentationState.js	2018-04-17 02:02:06 UTC (rev 230696)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2018 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. ``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
+ * 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.
+ */
+
+/*
+class FragmentationState {
+public:
+    FormattingState& formattingState();
+};
+*/
+class FragmentationState {
+    constructor(parentFormattingState) {
+        this.m_parentFormattingState = parentFormattingState;
+    }
+
+    formattingState() {
+        return this.m_parentFormattingState;
+    }
+}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to