+2014-02-06 Andreas Kling <akling@apple.com>
+
+ Remove display:run-in support.
+ <https://webkit.org/b/127874>
+ <rdar://problem/15926949>
+
+ Rubber-stamped by Anders Carlsson.
+
+ * editing/undo/undo-after-event-edited.html:
+ * fast/css-generated-content/generated-runin-expected.html: Removed.
+ * fast/css-generated-content/generated-runin.html: Removed.
+ * fast/lists/parent-box-not-box-crash-expected.txt: Removed.
+ * fast/lists/parent-box-not-box-crash.html: Removed.
+ * fast/multicol/span/runin-continuation-crash-expected.txt: Removed.
+ * fast/multicol/span/runin-continuation-crash.html: Removed.
+ * fast/runin/001.html: Removed.
+ * fast/runin/002.html: Removed.
+ * fast/runin/crash-when-reparent-sibling-expected.txt: Removed.
+ * fast/runin/crash-when-reparent-sibling.html: Removed.
+ * fast/runin/generated-content-crash-expected.png: Removed.
+ * fast/runin/generated-content-crash-expected.txt: Removed.
+ * fast/runin/generated-content-crash.html: Removed.
+ * fast/runin/generated.html: Removed.
+ * fast/runin/generated2.html: Removed.
+ * fast/runin/generated3.html: Removed.
+ * fast/runin/generated4.html: Removed.
+ * fast/runin/input-text-runin-expected.txt: Removed.
+ * fast/runin/input-text-runin.html: Removed.
+ * fast/runin/insert-before-run-in-expected.png: Removed.
+ * fast/runin/insert-before-run-in-expected.txt: Removed.
+ * fast/runin/insert-before-run-in.html: Removed.
+ * fast/runin/move-run-in-original-position-crash-expected.png: Removed.
+ * fast/runin/move-run-in-original-position-crash-expected.txt: Removed.
+ * fast/runin/move-run-in-original-position-crash.html: Removed.
+ * fast/runin/nonblock-runin-expected.txt: Removed.
+ * fast/runin/nonblock-runin.html: Removed.
+ * fast/runin/progress-run-in-crash-expected.txt: Removed.
+ * fast/runin/progress-run-in-crash.html: Removed.
+ * fast/runin/run-in-after-run-in-expected.png: Removed.
+ * fast/runin/run-in-after-run-in-expected.txt: Removed.
+ * fast/runin/run-in-after-run-in.html: Removed.
+ * fast/runin/run-in-layer-not-removed-crash-expected.txt: Removed.
+ * fast/runin/run-in-layer-not-removed-crash.html: Removed.
+ * fast/runin/run-in-parent-add-child-expected.png: Removed.
+ * fast/runin/run-in-parent-add-child-expected.txt: Removed.
+ * fast/runin/run-in-parent-add-child.html: Removed.
+ * fast/runin/run-in-parent-block-child-add-and-intrude-expected.png: Removed.
+ * fast/runin/run-in-parent-block-child-add-and-intrude-expected.txt: Removed.
+ * fast/runin/run-in-parent-block-child-add-and-intrude.html: Removed.
+ * fast/runin/run-in-parent-block-child-add-expected.png: Removed.
+ * fast/runin/run-in-parent-block-child-add-expected.txt: Removed.
+ * fast/runin/run-in-parent-block-child-add.html: Removed.
+ * fast/runin/runin-between-list-marker-and-before-content-expected.png: Removed.
+ * fast/runin/runin-between-list-marker-and-before-content-expected.txt: Removed.
+ * fast/runin/runin-between-list-marker-and-before-content.html: Removed.
+ * fast/runin/runin-continuations-crash-expected.txt: Removed.
+ * fast/runin/runin-continuations-crash.html: Removed.
+ * fast/runin/runin-div-before-child-expected.png: Removed.
+ * fast/runin/runin-div-before-child-expected.txt: Removed.
+ * fast/runin/runin-div-before-child.html: Removed.
+ * fast/runin/runin-generated-before-content-expected.png: Removed.
+ * fast/runin/runin-generated-before-content-expected.txt: Removed.
+ * fast/runin/runin-generated-before-content.html: Removed.
+ * fast/runin/runin-into-div-with-float-child-expected.png: Removed.
+ * fast/runin/runin-into-div-with-float-child-expected.txt: Removed.
+ * fast/runin/runin-into-div-with-float-child.html: Removed.
+ * fast/runin/runin-not-go-into-float-expected.png: Removed.
+ * fast/runin/runin-not-go-into-float-expected.txt: Removed.
+ * fast/runin/runin-not-go-into-float.html: Removed.
+ * fast/runin/runin-remove-child-simple-expected.txt: Removed.
+ * fast/runin/runin-remove-child-simple.html: Removed.
+ * fast/runin/runin-reparent-crash-expected.txt: Removed.
+ * fast/runin/runin-reparent-crash.html: Removed.
+ * fast/runin/runin-sibling-inline-expected.txt: Removed.
+ * fast/runin/runin-sibling-inline.html: Removed.
+ * fast/runin/runin-table-before-child-expected.png: Removed.
+ * fast/runin/runin-table-before-child-expected.txt: Removed.
+ * fast/runin/runin-table-before-child.html: Removed.
+ * fast/runin/select-runin-expected.txt: Removed.
+ * fast/runin/select-runin.html: Removed.
+ * fast/runin/textarea-runin-expected.txt: Removed.
+ * fast/runin/textarea-runin.html: Removed.
+ * fast/table/form-with-table-style.html: Removed.
+ * platform/efl/fast/runin/001-expected.png: Removed.
+ * platform/efl/fast/runin/001-expected.txt: Removed.
+ * platform/efl/fast/runin/002-expected.png: Removed.
+ * platform/efl/fast/runin/002-expected.txt: Removed.
+ * platform/efl/fast/runin/generated-expected.png: Removed.
+ * platform/efl/fast/runin/generated-expected.txt: Removed.
+ * platform/efl/fast/runin/generated2-expected.png: Removed.
+ * platform/efl/fast/runin/generated2-expected.txt: Removed.
+ * platform/efl/fast/runin/generated3-expected.png: Removed.
+ * platform/efl/fast/runin/generated3-expected.txt: Removed.
+ * platform/efl/fast/runin/generated4-expected.png: Removed.
+ * platform/efl/fast/runin/generated4-expected.txt: Removed.
+ * platform/efl/fast/runin/runin-generated-before-content-expected.png: Removed.
+ * platform/gtk/fast/runin/001-expected.png: Removed.
+ * platform/gtk/fast/runin/001-expected.txt: Removed.
+ * platform/gtk/fast/runin/002-expected.png: Removed.
+ * platform/gtk/fast/runin/002-expected.txt: Removed.
+ * platform/gtk/fast/runin/generated-content-crash-expected.png: Removed.
+ * platform/gtk/fast/runin/generated-expected.png: Removed.
+ * platform/gtk/fast/runin/generated-expected.txt: Removed.
+ * platform/gtk/fast/runin/generated2-expected.png: Removed.
+ * platform/gtk/fast/runin/generated2-expected.txt: Removed.
+ * platform/gtk/fast/runin/generated3-expected.png: Removed.
+ * platform/gtk/fast/runin/generated3-expected.txt: Removed.
+ * platform/gtk/fast/runin/generated4-expected.png: Removed.
+ * platform/gtk/fast/runin/generated4-expected.txt: Removed.
+ * platform/gtk/fast/runin/insert-before-run-in-expected.png: Removed.
+ * platform/gtk/fast/runin/move-run-in-original-position-crash-expected.png: Removed.
+ * platform/gtk/fast/runin/run-in-after-run-in-expected.png: Removed.
+ * platform/gtk/fast/runin/run-in-parent-add-child-expected.png: Removed.
+ * platform/gtk/fast/runin/run-in-parent-block-child-add-and-intrude-expected.png: Removed.
+ * platform/gtk/fast/runin/run-in-parent-block-child-add-expected.png: Removed.
+ * platform/gtk/fast/runin/runin-between-list-marker-and-before-content-expected.png: Removed.
+ * platform/gtk/fast/runin/runin-div-before-child-expected.png: Removed.
+ * platform/gtk/fast/runin/runin-generated-before-content-expected.png: Removed.
+ * platform/gtk/fast/runin/runin-into-div-with-float-child-expected.png: Removed.
+ * platform/gtk/fast/runin/runin-not-go-into-float-expected.png: Removed.
+ * platform/gtk/fast/runin/runin-table-before-child-expected.png: Removed.
+ * platform/mac/fast/runin/001-expected.png: Removed.
+ * platform/mac/fast/runin/001-expected.txt: Removed.
+ * platform/mac/fast/runin/002-expected.png: Removed.
+ * platform/mac/fast/runin/002-expected.txt: Removed.
+ * platform/mac/fast/runin/generated-expected.png: Removed.
+ * platform/mac/fast/runin/generated-expected.txt: Removed.
+ * platform/mac/fast/runin/generated2-expected.png: Removed.
+ * platform/mac/fast/runin/generated2-expected.txt: Removed.
+ * platform/mac/fast/runin/generated3-expected.png: Removed.
+ * platform/mac/fast/runin/generated3-expected.txt: Removed.
+ * platform/mac/fast/runin/generated4-expected.png: Removed.
+ * platform/mac/fast/runin/generated4-expected.txt: Removed.
+ * platform/win/fast/runin/nonblock-runin-expected.txt: Removed.
+
2014-02-06 Frédéric Wang <fred.wang@free.fr>
Do not draw multi-characters <mi> in italic.
<html>
<head>
<style>
-* { display:run-in; }
+* { display:block; }
.collapse { visibility:collapse; }
</style>
<script>
+++ /dev/null
-<!DOCTYPE html>
-
-<section>
- <div>
- This should all be on the same line.
- </div>
-</section>
+++ /dev/null
-<!DOCTYPE html>
-
-<style>
- section.run-in:before {
- display: run-in;
- content: "This ";
- }
-</style>
-
-<section>
- <div>
- should all be on the same line.
- </div>
-</section>
-
-<script>
-onload = function() {
- document.querySelector('section').className = 'run-in';
-}
-</script>
+++ /dev/null
-PASS, if no exceptions or crash observed
-
+++ /dev/null
-<style>
-.testclass::before { position: absolute; content: ""; }
-.testclass { display: run-in; }
-</style>
-PASS, if no exceptions or crash observed
-<script>
-function runTest()
-{
- test1 = document.createElement('div');
- test1.setAttribute('class', 'testclass');
- document.documentElement.appendChild(test1);
- test2 = document.createElement('b');
- test2.setAttribute('class', 'testclass');
- document.documentElement.appendChild(test2);
- test3 = document.createElement('div');
- document.documentElement.appendChild(test3);
- if (window.testRunner)
- testRunner.dumpAsText();
-}
-window.onload = runTest;
-</script>
-
+++ /dev/null
-This tests if all children in run-in block will be displayed.
-
-foobar
-foo
+++ /dev/null
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-</script>
-<p> This tests if all children in run-in block will be displayed.</p>
-
-<p style="display: run-in;"><span>foo</span>bar</p><p>foo</p>
+++ /dev/null
-This tests a case where a particular DOM tree involving the run-in style causes multiple continuations to be created in the render tree in a configuration where the same render tree node would be destroyed twice. If there is no crash, the test passes.
-
-If you can see this the test almost certainly passed.
+++ /dev/null
-<script>
- if (window.testRunner)
- testRunner.dumpAsText();
-</script>
-
-<p>This tests a case where a particular DOM tree involving the run-in style
-causes multiple continuations to be created in the render tree in a configuration where
-the same render tree node would be destroyed twice. If there is no crash, the test passes.</p>
-
-<span style="display: run-in">
- <span></span>
- <marquee>
- <span>
- <span>
- <div></div>
- </span>
- </span>
- </marquee>
-</span>
-<div></div>
-
-<p>If you can see this the test almost certainly passed.</p>
<div><div style="display:inline;"><form><table><tr><td>display: inline</td></tr></table></form></div></div>
<div><div style="display:block;"><form><table><tr><td>display: block</td></tr></table></form></div></div>
<div><div style="display:list-item;"><form><table><tr><td>display: list-item</td></tr></table></form></div></div>
-<div><div style="display:run-in;"><form><table><tr><td>display: run-in</td></tr></table></form></div></div>
<div><div style="display:compact;"><form><table><tr><td>display: compact</td></tr></table></form></div></div>
<div><div style="display:inline-block;"><form><table><tr><td>display: inline-block</td></tr></table></form></div></div>
<div><div style="display:table;"><form><table><tr><td>display: table</td></tr></table></form></div></div>
+++ /dev/null
-<html>\r
- <head>\r
- <style>\r
- .test1 { \r
- display: list-item; \r
- }\r
- .test2 { \r
- display: run-in; \r
- }\r
- </style>\r
- <script>\r
- if (window.testRunner)\r
- testRunner.dumpAsText();\r
- </script>\r
- </head>\r
- <body>\r
- <div class="test1">\r
- <div class="test2">\r
- PASS\r
- </div>\r
- <div>\r
- </body>\r
-</html>\r
-\r
+++ /dev/null
-<!DOCTYPE html>
-<html>
-<body>
-<style>
-.div1 { -webkit-column-span: all; }
-.divContainer::after { content: ''; }
-.divContainer { -webkit-column-width: 1px; }
-.runin { display: run-in; }
-</style>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-document.body.offsetTop;
-div1 = document.createElement('div');
-div1.setAttribute('class', 'div1');
-div2 = document.createElement('div');
-div3 = document.createElement('div');
-
-divContainer = document.createElement('div');
-divContainer.setAttribute('class', 'divContainer');
-document.documentElement.appendChild(divContainer);
-
-div2.appendChild(div1);
-divContainer.appendChild(div2);
-divContainer.appendChild(div3);
-document.body.offsetTop;
-div2.setAttribute('class', 'runin');
-document.body.offsetTop;
-document.body.innerHTML = "PASS";
-</script>
-</body>
-</html>
PASS testElement(element, "none") is false
PASS testElement(element, "block") is true
PASS testElement(element, "inline-block") is true
-PASS testElement(element, "run-in") is false
PASS testElement(element, "compact") is false
PASS testElement(element, "inline") is false
PASS testElement(element, "table") is false
PASS createRegionElement("div", "none") is false
PASS createRegionElement("div", "block") is true
PASS createRegionElement("div", "inline-block") is true
-PASS createRegionElement("div", "run-in") is false
PASS createRegionElement("div", "compact") is false
PASS createRegionElement("div", "inline") is false
PASS createRegionElement("div", "table") is false
shouldBeFalse('testElement(element, "none")');
shouldBeTrue('testElement(element, "block")');
shouldBeTrue('testElement(element, "inline-block")');
-shouldBeFalse('testElement(element, "run-in")');
shouldBeFalse('testElement(element, "compact")');
shouldBeFalse('testElement(element, "inline")');
shouldBeFalse('testElement(element, "table")');
shouldBeFalse('createRegionElement("div", "none")');
shouldBeTrue('createRegionElement("div", "block")');
shouldBeTrue('createRegionElement("div", "inline-block")');
-shouldBeFalse('createRegionElement("div", "run-in")');
shouldBeFalse('createRegionElement("div", "compact")');
shouldBeFalse('createRegionElement("div", "inline")');
shouldBeFalse('createRegionElement("div", "table")');
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html401/strict.dtd">
-<html>
-<head>
-<title>Test</title>
-
-<style type="text/css">
-.block { display: block }
-.runin { display: run-in }
-.inline { display: inline }
-
-</style>
-</head>
-
-<body>
-Case A:
-
-<div class="block">
- <div class="runin">This should NOT</div>
- <div class="inline">run in.</div>
-</div>
-
-Case B:
-
-<div class="block">
- <div class="runin">This should NOT</div>
- run in.
-</div>
-
-Case C:
-
-<div class="block">
- <div class="runin">This should </div>
- <div class="block">run in.</div>
-</div>
-
-Case D:
-
-<div class="block">
- <div class="runin">This should NOT</div>
- <div class="runin">run in.</div>
-</div>
-
-</body>
-</html>
-
+++ /dev/null
-<!DOCTYPE html>
-<html>
- <head>
- <title>WebKit Bug 23839: Definition terms with display style of run-in display :after content like :before content</title>
- <link href="http://chasenlehara.com/" rel="author" title="Chasen Le Hara" />
- <style type="text/css">
-dt {display: run-in}
-dt:after {content: ":"}
- </style>
- </head>
- <body>
- <dl>
- <dt>Term</dt>
- <dd>Definition</dd>
- </dl>
- </body>
-</html>
\ No newline at end of file
+++ /dev/null
-PASS
-Output:
-block sibling
-run-in
-block child
+++ /dev/null
-<html>
- <head>
- <script>
- function runTest()
- {
- if (window.testRunner)
- testRunner.dumpAsText();
-
- // Create a run-in.
- var elem = document.createElement("div");
- elem.id = "run-in";
- elem.innerHTML = "run-in";
- elem.setAttribute("style", "display: run-in");
- document.body.appendChild(elem);
-
- // Create a sibling block to the run-in.
- elem = document.createElement("div");
- elem.id = "block-sibling";
- elem.innerHTML = "block sibling";
- document.body.appendChild(elem);
-
- // Trigger a re-paint.
- document.body.offsetTop;
-
- // Add a block child to the run-in.
- elem = document.createElement("div");
- elem.innerHTML = "block child";
- elem.setAttribute("style", "display: table");
- document.getElementById("run-in").appendChild(elem);
-
- // Trigger a re-paint.
- document.body.offsetTop;
-
- // Reparent the run-in's sibling block.
- document.getElementById("output").appendChild(document.getElementById("block-sibling"));
- document.getElementById("result").innerHTML = "PASS";
- }
- </script>
- </head>
- <body onload="runTest()">
- <div id="result"></div>
- Output: <br/>
- <div id="output"></div>
- </body>
-</html>
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x106
- RenderBlock {HTML} at (0,0) size 800x106
- RenderBody {BODY} at (8,8) size 784x90
- RenderBlock {DIV} at (0,0) size 90x90 [border: (10px solid #800080)]
- RenderBlock {DIV} at (10,10) size 70x70 [border: (10px solid #008000)]
- RenderInline (generated) at (0,0) size 50x50 [color=#FFA500]
- RenderText at (10,10) size 50x50
- text run at (10,10) width 50: "A"
- RenderText {#text} at (0,0) size 0x0
+++ /dev/null
-<!DOCTYPE html>
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">
-<!-- 'A' orange box should be inside the green box, which in turn is inside the purple box. -->
-<body>
-<style>
-#div1:before {
- display: run-in;
- content: 'A';
- color: orange;
-}
-</style>
-<div id="div1" style="display: inline-block; border: 10px solid purple">
-<div style="border: 10px solid green"></div>
-</div>
-</body>
-</html>
+++ /dev/null
-<style>
- #target:before {
- content: "PASS";
- display: run-in;
- }
-</style>
-<p>
- Test for <i><a href="rdar://problem/6777374">rdar://problem/6777374</a>
- Generated content with display: run-in causes a crash</i>.
-</p>
-<div id="target">
- <div> < this should say “PASS”</div>
-</div>
+++ /dev/null
-<style>
-#target:before {
- content: "PASS";
- display: run-in;
-}
-</style>
-<p>x</p>
-<div id="target">
- <div id="inner"> < this should say still say “PASS”</div>
-</div>
-<script>
-// Force layout.
-document.body.offsetTop;
-
-// Cause a layout of the inner div.
-document.getElementById('inner').style.color = 'blue';
-</script>
+++ /dev/null
-<style>
-#target:before {
- content: "PASS";
- display: run-in;
-}
-</style>
-<p>x</p>
-<div id="target">
- <div id="inner"> < this should say still say “PASS”</div>
-</div>
-<script>
-// Force layout.
-document.body.offsetTop;
-
-// Cause a layout of the outer div.
-document.getElementById('target').style.color = 'blue';
-</script>
+++ /dev/null
-<style>
-.hasRunIn:before {
- content: "FAIL";
- display: run-in;
- color: red;
-}
-</style>
-
-<ul class="hasRunIn">
- <li>x</li>
-</ul>
-
-<div>
- <div class="hasRunIn">
- <p>x</p>
- </div>
-</div>
-
-<script>
-// Force layout.
-document.body.clientHeight;
-
-// This is not a Live Collection, so it is safe to iterate.
-var elems = document.querySelectorAll('.hasRunIn');
-for (var i=0; i<elems.length; ++i)
- elems[i].className = '';
-</script>
+++ /dev/null
-PASS if not crashed
+++ /dev/null
-<!DOCTYPE html>
-<head>
-<style>
-#el0 { -webkit-appearance: none; }
-.c0 { display: run-in; }
-</style>
-</head>
-<body><input type=text id=el0>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-document.body.appendChild(el0);
-document.body.appendChild(document.createElement('div'));
-document.body.offsetTop;
-el0.classList.add('c0');
-document.body.offsetTop;
-document.body.innerHTML = 'PASS if not crashed';
-</script>
-</body>
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x116
- RenderBlock {HTML} at (0,0) size 800x116
- RenderBody {BODY} at (8,8) size 784x100
- RenderBlock {DIV} at (0,0) size 784x100
- RenderBlock (run-in) {DIV} at (0,0) size 784x50 [color=#008000]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderBlock {DIV} at (0,50) size 784x50 [color=#800080]
- RenderInline (run-in) {DIV} at (0,0) size 50x50 [color=#FFA500]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "B"
- RenderText {#text} at (50,0) size 50x50
- text run at (50,0) width 50: "C"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">\r
-<!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout. -->\r
-<!-- 'A' should be on its own line, followed by run-in 'B' and 'C' in the next line -->\r
-<style>\r
-.runin { display: run-in; }\r
-</style>\r
-</head>\r
-<body>\r
-<div>\r
- <div id="div3" style="color: purple">C</div>\r
-</div>\r
-</body>\r
-<script>\r
-document.body.offsetTop;\r
-div1 = document.createElement('div');\r
-div1.setAttribute('class', 'runin');\r
-div1.style.color = 'green';\r
-div1.appendChild(document.createTextNode('A'));\r
-div2 = document.createElement('div');\r
-div2.setAttribute('class', 'runin');\r
-div2.style.color = 'orange';\r
-div2.appendChild(document.createTextNode('B'));\r
-div3 = document.getElementById('div3');\r
-document.body.offsetTop;\r
-div3.parentNode.insertBefore(div2, div3);\r
-document.body.offsetTop;\r
-div3.parentNode.insertBefore(div1, div2);\r
-</script>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x116
- RenderBlock {HTML} at (0,0) size 800x116
- RenderBody {BODY} at (8,8) size 784x100
- RenderBlock (run-in) {LI} at (0,0) size 784x50 [color=#FFA500]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderBlock {DIV} at (0,50) size 784x50
- RenderTable at (0,0) size 50x50
- RenderTableSection (anonymous) at (0,0) size 50x50
- RenderTableRow (anonymous) at (0,0) size 50x50 [color=#800080]
- RenderTableCell (anonymous) at (0,0) size 50x50 [r=0 c=0 rs=1 cs=1]
- RenderText at (0,0) size 50x50
- text run at (0,0) width 50: "B"
+++ /dev/null
-<!DOCTYPE html>
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">
-<!-- 'A' orange box followed by 'B' purple box in next line. -->
-<body>
-<style>
-.li1 { display: run-in; color: orange; }
-.div1::before { display: table-row; content: 'B'; color: purple; }
-</style>
-<script>
-document.body.offsetTop;
-li1 = document.createElement('li');
-li1.setAttribute('class', 'li1');
-li1.appendChild(document.createTextNode('A'));
-document.body.appendChild(li1);
-div1 = document.createElement('div');
-document.body.appendChild(div1);
-document.body.offsetTop;
-div1.setAttribute('class', 'div1');
-</script>
-</body>
-</html>
+++ /dev/null
-Test for https://bugs.webkit.org/show_bug.cgi?id=12052. Before the change, display: run-in; with non-RenderBlock element hit ASSERTion and run-in video made Safari crash.
-
-PASS
-
-PASS
+++ /dev/null
-<p>
- Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=12052">https://bugs.webkit.org/show_bug.cgi?id=12052</a>.
- Before the change, display: run-in; with non-RenderBlock element hit ASSERTion and run-in video made Safari crash.
-</p>
-<div>
- <canvas style="display: run-in;">FOO</canvas>
- <div>PASS</div>
-</div>
-
-<div>
- <video src="../../media/content/test.mp4" style="display: run-in;" controls></video>
- <div>PASS</div>
-</div>
-
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-</script>
+++ /dev/null
-WebKit Bug 87274 - ASSERT failure toRenderProgress in HTMLProgressElement::didElementStateChange.
-Test passes if it does not crash.
-
-
+++ /dev/null
-<!DOCTYPE html>\r
-<html>\r
-WebKit Bug 87274 - ASSERT failure toRenderProgress in HTMLProgressElement::didElementStateChange.<br />\r
-Test passes if it does not crash.<br />\r
-<body>\r
-<progress id="progress1" style="-webkit-appearance: none"></progress><div></div>\r
-<script>\r
-if (window.testRunner)\r
- testRunner.dumpAsText();\r
-\r
-document.body.offsetTop;\r
-progress1.style.display = 'run-in';\r
-</script>\r
-</body>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x116
- RenderBlock {HTML} at (0,0) size 800x116
- RenderBody {BODY} at (8,8) size 784x100
- RenderBlock {DIV} at (0,0) size 784x100
- RenderBlock (run-in) {DIV} at (0,0) size 784x50 [color=#008000]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderBlock {DIV} at (0,50) size 784x50 [color=#800080]
- RenderInline (run-in) {DIV} at (0,0) size 50x50 [color=#FFA500]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "B"
- RenderText {#text} at (50,0) size 50x50
- text run at (50,0) width 50: "C"
+++ /dev/null
-<!DOCTYPE html>
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">
-<!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout. -->
-<!-- 'A' green box should be on its own line, followed by run-in orange 'B' box and purple 'C' box in the next line -->
-<style>
-.runin { display: run-in; }
-</style>
-</head>
-<body>
-<div>
- <div class="runin" style="color: green">A</div>
- <div class="runin" style="color: orange">B</div>
- <div style="color: purple">C</div>
-</div>
-</body>
-</html>
+++ /dev/null
-Webkit Bug 81265: Crash due to layer tree information not updated when moving run-in children.
-Test passes if it does not crash.
-
+++ /dev/null
-<!DOCTYPE html>\r
-<html>\r
-<body>\r
-Webkit Bug 81265: Crash due to layer tree information not updated when moving run-in children.<br />\r
-Test passes if it does not crash.\r
-<style>\r
-#test0 {\r
- -webkit-perspective: 1;\r
-}\r
-#test1:nth-last-child(3n) {\r
- -webkit-box-reflect: right;\r
- display: run-in;\r
-}\r
-#test2 {\r
- display: inline-table;\r
-}\r
-#test2:first-child {\r
- -webkit-box-reflect: below;\r
-}\r
-</style>\r
-<script>\r
-if (window.testRunner)\r
- testRunner.dumpAsText();\r
-\r
-onload = function() \r
-{\r
- test0 = document.createElement('div');\r
- test0.setAttribute('id','test0');\r
- document.body.appendChild(test0);\r
- test1 = document.createElement('b');\r
- test1.setAttribute('id','test1');\r
- document.body.appendChild(test1);\r
- test2 = document.createElement('div');\r
- test2.setAttribute('id','test2');\r
- test1.appendChild(test2);\r
- test3 = document.createElement('div');\r
- document.body.appendChild(test3);\r
- document.body.insertBefore(document.createElement('div'), test3);\r
- document.designMode = 'on';\r
- document.execCommand('selectall');\r
- document.execCommand('removeFormat');\r
-}\r
-</script>\r
-</body>\r
-</html>\r
-\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x66
- RenderBlock {HTML} at (0,0) size 800x66
- RenderBody {BODY} at (8,8) size 784x50
- RenderBlock {DIV} at (0,0) size 784x50
- RenderBlock {DIV} at (0,0) size 784x50 [color=#800080]
- RenderInline (run-in) {DIV} at (0,0) size 50x50 [color=#008000]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderInline {SPAN} at (0,0) size 50x50 [color=#FFA500]
- RenderText {#text} at (50,0) size 50x50
- text run at (50,0) width 50: "B"
- RenderText {#text} at (100,0) size 50x50
- text run at (100,0) width 50: "C"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">\r
-<!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout. -->\r
-<!-- 'A' green box, followed by 'B' orange box, followed by 'C' purple box in the same line. -->\r
-<style>\r
-.runin { display: run-in; color: green; }\r
-</style>\r
-</head>\r
-<body>\r
-<div>\r
- <div class="runin">A</div>\r
- <div id="test" style="color: purple">C</div>\r
-</div>\r
-</body>\r
-<script>\r
-document.body.offsetTop;\r
-test = document.getElementById('test');\r
-span = document.createElement('span');\r
-span.appendChild(document.createTextNode('B'));\r
-span.style.color = 'orange';\r
-test.insertBefore(span, test.firstChild);\r
-</script>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x66
- RenderBlock {HTML} at (0,0) size 800x66
- RenderBody {BODY} at (8,8) size 784x50
- RenderBlock {DIV} at (0,0) size 784x50
- RenderBlock {DIV} at (0,0) size 784x50 [color=#FFA500]
- RenderInline (run-in) {DIV} at (0,0) size 50x50 [color=#008000]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderText {#text} at (50,0) size 50x50
- text run at (50,0) width 50: "B"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">\r
-<!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout. -->\r
-<!-- You should see a green 'A' box, followed by orange 'B' box in the same line. -->\r
-<style>\r
-.runin { display: run-in; }\r
-</style>\r
-</head>\r
-<body>\r
-<div>\r
- <div class="runin" style="color: green">A</div>\r
- <div id="test2" class="runin" style="color: orange">B</div>\r
- <div id="test">C</div>\r
-</div>\r
-</body>\r
-<script>\r
-document.body.offsetTop;\r
-test = document.getElementById('test');\r
-test.appendChild(document.createElement('div')); // This should cause 'B' to stop being a run-in, detach from 'C' and let 'A' run-in into 'B'.\r
-document.body.offsetTop;\r
-test.style.display = 'none'; // This helps to visualize that no run-in is part of 'C'.\r
-test2.style.display = 'block'; // This should cause 'A' to run-in into 'B'.\r
-</script>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x66
- RenderBlock {HTML} at (0,0) size 800x66
- RenderBody {BODY} at (8,8) size 784x50
- RenderBlock {DIV} at (0,0) size 784x50
- RenderBlock (run-in) {DIV} at (0,0) size 784x50 [color=#008000]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;">\r
-<!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout. -->\r
-<!-- You should only see a green 'A' box. -->\r
-<style>\r
-.runin { display: run-in; color: green; }\r
-</style>\r
-</head>\r
-<body>\r
-<div>\r
- <div class="runin">A</div>\r
- <div id="test">B</div>\r
-</div>\r
-</body>\r
-<script>\r
-document.body.offsetTop;\r
-test = document.getElementById('test');\r
-test.appendChild(document.createElement('div')); // This should cause 'A' to stop being a run-in and detach from 'B'.\r
-document.body.offsetTop;\r
-test.style.display = 'none'; // This helps to visualize that no run-in is part of 'B'.\r
-</script>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x66
- RenderBlock {HTML} at (0,0) size 800x66
- RenderBody {BODY} at (8,8) size 784x50
- RenderListItem {LI} at (0,0) size 784x50 [color=#FFA500]
- RenderInline (run-in) {DIV} at (0,0) size 250x50 [color=#008000]
- RenderText {#text} at (0,0) size 250x50
- text run at (0,0) width 250: "RUNIN"
- RenderListMarker at (249,0) size 15x50: bullet
- RenderInline (generated) at (0,0) size 100x50
- RenderText at (290,0) size 100x50
- text run at (290,0) width 100: "AB"
- RenderText {#text} at (390,0) size 100x50
- text run at (390,0) width 100: "CD"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 10px; -webkit-font-smoothing: none;">\r
-<!-- Test passes if you see RUNIN, followed by list marker and ABCD. All text should be of same 50px size. -->\r
-<style>\r
-li:before { content: "AB"; }\r
-</style>\r
-<div style="display: run-in; color: green">RUNIN</div>\r
-<li style="color: orange">CD</li>\r
-<script>\r
-document.body.offsetTop;\r
-document.body.style.fontSize = "50px";\r
-</script>\r
-</body>\r
-</html>\r
+++ /dev/null
-WebKit Bug 87264 - Crash in run-ins with continuations while moving back to original position.
-Test passes if it does not crash.
-
+++ /dev/null
-<html>
-<body>
-WebKit Bug 87264 - Crash in run-ins with continuations while moving back to original position.<br />
-Test passes if it does not crash.<br />
-<style>
-.runIn { display: run-in; }
-</style>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-document.body.offsetTop;
-
-runIn1 = document.createElement('div');
-runIn1.setAttribute('class', 'runIn');
-document.body.appendChild(runIn1);
-
-q1 = document.createElement('q');
-q1.style.display = 'block';
-document.body.appendChild(q1);
-
-span1 = document.createElement('span');
-q1.appendChild(span1);
-
-document.body.offsetTop;
-
-runIn1.appendChild(document.createElement('div'));
-span1.style.display = 'block';
-document.body.offsetTop;
-q1.style.display = 'none';
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x116
- RenderBlock {HTML} at (0,0) size 800x116 [color=#FFFFFF]
- RenderBody {BODY} at (8,8) size 784x100
- RenderBlock {DIV} at (0,0) size 784x50
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderBlock {DIV} at (0,50) size 784x50
- RenderInline (run-in) {DIV} at (0,0) size 50x50
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "B"
- RenderText {#text} at (50,0) size 50x50
- text run at (50,0) width 50: "C"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none; color: white;">\r
-<body>\r
-<div id="runin" style="display: run-in">B</div>\r
-<div>C</div>\r
-<script>\r
-document.body.offsetTop;\r
-var div1 = document.createElement('div');\r
-div1.appendChild(document.createTextNode('A'));\r
-document.body.insertBefore(div1, document.getElementById('runin'));\r
-</script>\r
-</body>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x48
- RenderBlock {HTML} at (0,0) size 800x48
- RenderBody {BODY} at (8,8) size 784x32
- RenderBlock {DIV} at (0,0) size 784x32 [color=#008000]
- RenderInline (run-in) {DIV} at (0,0) size 128x32 [color=#FFA500]
- RenderText {#text} at (0,0) size 128x32
- text run at (0,0) width 128: "ABCD"
- RenderInline (generated) at (0,0) size 128x32 [color=#0000FF]
- RenderText at (128,0) size 128x32
- text run at (128,0) width 128: "EFGH"
- RenderText {#text} at (256,0) size 128x32
- text run at (256,0) width 128: "IJKL"
+++ /dev/null
-<!DOCTYPE html>\r
-<!-- You should see only one blue textbox between the orange and green textbox. -->\r
-<html>\r
-<body style="font: 1em/1 Ahem, sans-serif;">\r
-<style>\r
-#test::before {\r
- content: "EFGH";\r
- color: blue;\r
-}\r
-</style> \r
-<div style="display: run-in; color: orange">ABCD</div><div id="test" style="color: green">IJKL</div>\r
-<script>\r
- document.body.offsetTop;\r
- document.body.style.fontSize = "200%";\r
-</script>\r
-</body>\r
-</html>\r
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x56
- RenderBlock {HTML} at (0,0) size 800x56
- RenderBody {BODY} at (8,8) size 784x40
- RenderBlock {DIV} at (0,0) size 784x40 [color=#008000]
- RenderInline (run-in) {DIV} at (0,0) size 160x40 [color=#FFA500]
- RenderText {#text} at (40,0) size 160x40
- text run at (40,0) width 160: "ABCD"
- RenderInline (generated) at (0,0) size 160x40 [color=#0000FF]
- RenderText at (200,0) size 160x40
- text run at (200,0) width 160: "EFGH"
- RenderBlock (floating) {DIV} at (0,0) size 40x40
- RenderText {#text} at (0,0) size 40x40
- text run at (0,0) width 40: "A"
- RenderText {#text} at (360,0) size 160x40
- text run at (360,0) width 160: "IJKL"
+++ /dev/null
-<!DOCTYPE html>
-<!-- You should see green A, followed by orange ABCD, followed by blue EFGH and green IJKL. None of these should be repeated and all should be of 40px size. -->
-<html>
-<body style="font-family: ahem; font-size: 10px; -webkit-font-smoothing: none;">
-<style>
-#test::before {
- content: "EFGH";
- color: blue;
-}
-</style>
-<div style="display: run-in; color: orange">ABCD</div><div id="test" style="color: green"><div style="float:left">A</div>IJKL</div>
-<script>
-document.body.offsetTop;
-document.body.style.fontSize = "40px";
-</script>
-</body>
-</html>
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x96
- RenderBlock {HTML} at (0,0) size 800x96
- RenderBody {BODY} at (8,8) size 784x80
- RenderBlock {DIV} at (0,0) size 784x80 [color=#0000FF]
- RenderBlock (generated) at (0,0) size 784x40 [color=#008000]
- RenderText at (0,0) size 160x40
- text run at (0,0) width 160: "PASS"
- RenderBlock (floating) {SPAN} at (0,40) size 160x40
- RenderInline (generated) at (0,0) size 80x40
- RenderText at (0,0) size 80x40
- text run at (0,0) width 80: "EF"
- RenderText {#text} at (80,0) size 80x40
- text run at (80,0) width 80: "AB"
- RenderBlock {DIV} at (0,40) size 784x40
- RenderText {#text} at (160,0) size 80x40
- text run at (160,0) width 80: "CD"
+++ /dev/null
-<!DOCTYPE html>\r
-<!-- PASS on one line, followed by EFABCD on the second line. All text should be of same size 40 px. -->\r
-<html>\r
-<body style="font-family: ahem; font-size: 10px; -webkit-font-smoothing: none;">\r
-<style>\r
-#target:before {\r
- content: "PASS";\r
- display: run-in;\r
- color: green;\r
-}\r
-span:before {\r
- content: "EF";\r
-}\r
-</style>\r
-<div id="target" style="color: blue">\r
-<span style="float: left">AB</span>\r
-<div id="inner">CD</div>\r
-</div>\r
-<script>\r
-document.body.offsetTop;\r
-document.body.style.fontSize = "40px";\r
-</script>\r
-</body>\r
-</html>\r
+++ /dev/null
-This should
+++ /dev/null
-<!DOCTYPE html>
-<html>
-<style>
-.runin { display: run-in }
-</style>
-</head>
-<body>
-<div>
- <div class="runin">This should </div>
- <div id="t1">run in.</div>
-</div>
-</body>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-document.body.offsetTop;
-document.getElementById('t1').style.display = 'none';
-</script>
-</html>
+++ /dev/null
-Test passes if it does not crash.
-
+++ /dev/null
-<html>\r
- <body>\r
- Test passes if it does not crash.\r
- <p style="display: run-in; "></p>\r
- <details id="test"></details>\r
- <script>\r
- if (window.testRunner)\r
- testRunner.dumpAsText();\r
-\r
- document.body.offsetTop;\r
- \r
- var details = document.getElementById("test");\r
- document.body.removeChild(details);\r
- </script>\r
- </body>\r
-</html>\r
+++ /dev/null
-This should
-run in.
+++ /dev/null
-<!DOCTYPE html>
-<html>
-<style>
-.runin { display: run-in }
-</style>
-</head>
-<body>
-<div>
- <div class="runin">This should </div>
- <div id="t1">run in.</div>
-</div>
-</body>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-document.body.offsetTop;
-document.getElementById('t1').style.display = 'inline';
-</script>
-</html>
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x116
- RenderBlock {HTML} at (0,0) size 800x116 [color=#FFFFFF]
- RenderBody {BODY} at (8,8) size 784x100
- RenderTable at (0,0) size 50x50
- RenderTableSection (anonymous) at (0,0) size 50x50
- RenderTableRow {TR} at (0,0) size 50x50
- RenderTableCell (anonymous) at (0,0) size 50x50 [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "A"
- RenderBlock {DIV} at (0,50) size 784x50
- RenderInline (run-in) {DIV} at (0,0) size 50x50
- RenderText {#text} at (0,0) size 50x50
- text run at (0,0) width 50: "B"
- RenderText {#text} at (50,0) size 50x50
- text run at (50,0) width 50: "C"
+++ /dev/null
-<!DOCTYPE html>\r
-<html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none; color: white;">\r
-<body>\r
-<div id="runin" style="display: run-in">B</div>\r
-<div>C</div>\r
-<script>\r
-document.body.offsetTop;\r
-var tr1 = document.createElement('tr');\r
-tr1.appendChild(document.createTextNode('A'));\r
-document.body.insertBefore(tr1, document.getElementById('runin'));\r
-</script>\r
-</body>\r
-</html>\r
+++ /dev/null
-Test passes if it does not crash.
-
+++ /dev/null
-<!DOCTYPE html>\r
-<html>\r
-Test passes if it does not crash.\r
-<select multiple="multiple" id="select" style="-webkit-appearance: none; display: run-in;">\r
-<option></option>\r
-</select>\r
-<div></div>\r
-<script>\r
-if (window.testRunner)\r
- testRunner.dumpAsText();\r
-\r
-document.body.offsetTop;\r
-document.execCommand("SelectAll");\r
-var select = document.getElementById("select");\r
-select.removeChild(select.firstChild);\r
-</script>\r
-</html>\r
+++ /dev/null
-PASS if not crashed
+++ /dev/null
-<!DOCTYPE html>
-<head>
-<style>
-#el0 { -webkit-appearance: none; }
-.c0 { display: run-in; }
-</style>
-</head>
-<body><textarea id=el0></textarea>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-document.body.appendChild(el0);
-document.body.appendChild(document.createElement('div'));
-document.body.offsetTop;
-el0.classList.add('c0');
-eventSender.mouseMoveTo(20, 10);
-eventSender.mouseDown();
-eventSender.mouseUp();
-document.body.innerHTML = 'PASS if not crashed';
-</script>
-</body>
+++ /dev/null
-<p>This page has a few form elements on it with various styles.</p>
-<p>In older versions of WebKit, the table styles would cause infinite recursion and hangs.
-See <a href="https://bugs.webkit.org/show_bug.cgi?id=5731">bugzilla bug 5731</a>.</p>
-<div><form style="display:inline">display: inline</form></div>
-<div><form style="display:block">display: block</form></div>
-<div><form style="display:list-item">display: list-item</form></div>
-<div><form style="display:run-in">display: run-in</form></div>
-<div><form style="display:compact">display: compact</form></div>
-<div><form style="display:inline-block">display: inline-block</form></div>
-<div><form style="display:table">display: table</form></div>
-<div><form style="display:inline-table">display: inline-table</form></div>
-<div><form style="display:table-row-group">display: table-row-group</form></div>
-<div><form style="display:table-header-group">display: table-header-group</form></div>
-<div><form style="display:table-footer-group">display: table-footer-group</form></div>
-<div><form style="display:table-row">display: table-row</form></div>
-<div><form style="display:table-column-group">display: table-column-group</form></div>
-<div><form style="display:table-column">display: table-column</form></div>
-<div><form style="display:table-cell">display: table-cell</form></div>
-<div><form style="display:table-caption">display: table-caption</form></div>
+++ /dev/null
-../resources/inbody01.dat: PASS
+++ /dev/null
-<!DOCTYPE html>
-<script>
-var test_files = [ '../resources/inbody01.dat' ]
-</script>
-<script src="../../resources/dump-as-markup.js"></script>
-<script>window.forceDataURLs = true;</script>
-<script src="../resources/runner.js"></script>
+++ /dev/null
-../resources/inbody01.dat: PASS
+++ /dev/null
-<!DOCTYPE html>
-<script>
-var test_files = [ '../resources/inbody01.dat' ]
-</script>
-<script src="../../resources/dump-as-markup.js"></script>
-
-<script src="../resources/runner.js"></script>
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<!--
- Internet Explorer Test Pages Copyright © 2012 Microsoft Corporation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- Redistributions of source code must retain the above copyright notice, this list of
- conditions and the following disclaimer.
-
- 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.
-
- Neither the name of the Microsoft Corporation nor the names of its contributors may be
- used to endorse or promote products derived from this software without specific prior
- written permission.
-
- THIS SOFTWARE IS PROVIDED BY MICROSOFT CORPORATION "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 MICROSOFT CORPORATION
- 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.
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>CSS Test: 'Border-radius' applied to element with 'display' set to run-in.</title>
- <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
- <link rel="help" href="http://www.w3.org/TR/css3-background/#border-radius" />
- <meta name="flags" content="" />
- <meta name="assert" content="When 'border-radius' is applied to an element with 'displaye: run-in' it produces rounded corners." />
- <style type="text/css">
- div
- {
- border: solid green;
- border-radius: 10px;
- display: run-in;
- height: 1in;
- width: 1in;
- }
- </style>
- </head>
- <body>
- <p>Test passes if there is a box with rounded corners below.</p>
- <div></div>
- </body>
-</html>
\ No newline at end of file
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x214
- RenderBlock {HTML} at (0,0) size 800x214
- RenderBody {BODY} at (8,8) size 784x198
- RenderBlock (anonymous) at (0,0) size 784x18
- RenderText {#text} at (0,0) size 51x17
- text run at (0,0) width 51: "Case A:"
- RenderBlock {DIV} at (0,18) size 784x36
- RenderBlock (run-in) {DIV} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 112x17
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (anonymous) at (0,18) size 784x18
- RenderInline {DIV} at (0,0) size 41x17
- RenderText {#text} at (0,0) size 41x17
- text run at (0,0) width 41: "run in."
- RenderText {#text} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,54) size 784x18
- RenderText {#text} at (0,0) size 50x17
- text run at (0,0) width 50: "Case B:"
- RenderBlock {DIV} at (0,72) size 784x36
- RenderBlock (run-in) {DIV} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 112x17
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (anonymous) at (0,18) size 784x18
- RenderText {#text} at (0,0) size 41x17
- text run at (0,0) width 41: "run in."
- RenderBlock (anonymous) at (0,108) size 784x18
- RenderText {#text} at (0,0) size 50x17
- text run at (0,0) width 50: "Case C:"
- RenderBlock {DIV} at (0,126) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18
- RenderInline (run-in) {DIV} at (0,0) size 78x17
- RenderText {#text} at (0,0) size 78x17
- text run at (0,0) width 78: "This should "
- RenderText {#text} at (78,0) size 41x17
- text run at (78,0) width 41: "run in."
- RenderBlock (anonymous) at (0,144) size 784x18
- RenderText {#text} at (0,0) size 51x17
- text run at (0,0) width 51: "Case D:"
- RenderBlock {DIV} at (0,162) size 784x36
- RenderBlock (run-in) {DIV} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 112x17
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (run-in) {DIV} at (0,18) size 784x18
- RenderText {#text} at (0,0) size 41x17
- text run at (0,0) width 41: "run in."
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x50
- RenderBlock {HTML} at (0,0) size 800x50
- RenderBody {BODY} at (8,16) size 784x18
- RenderBlock {DL} at (0,0) size 784x18
- RenderBlock {DD} at (40,0) size 744x18
- RenderInline (run-in) {DT} at (0,0) size 38x17
- RenderText {#text} at (0,0) size 34x17
- text run at (0,0) width 34: "Term"
- RenderInline (generated) at (0,0) size 4x17
- RenderText at (34,0) size 4x17
- text run at (34,0) width 4: ":"
- RenderText {#text} at (38,0) size 64x17
- text run at (38,0) width 64: "Definition"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 53x17
- text run at (0,0) width 53: "Test for "
- RenderInline {I} at (0,0) size 500x17
- RenderInline {A} at (0,0) size 154x17 [color=#0000EE]
- RenderText {#text} at (53,0) size 154x17
- text run at (53,0) width 154: "rdar://problem/6777374"
- RenderText {#text} at (207,0) size 346x17
- text run at (207,0) width 4: " "
- text run at (211,0) width 342: "Generated content with display: run-in causes a crash"
- RenderText {#text} at (553,0) size 4x17
- text run at (553,0) width 4: "."
- RenderBlock {DIV} at (0,34) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18
- RenderInline (generated) at (0,0) size 39x17
- RenderText at (0,0) size 39x17
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 167x17
- text run at (39,0) width 167: " < this should say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,34) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18 [color=#0000FF]
- RenderInline (generated) at (0,0) size 39x17 [color=#000000]
- RenderText at (0,0) size 39x17
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 218x17
- text run at (39,0) width 218: " < this should say still say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,34) size 784x18 [color=#0000FF]
- RenderBlock {DIV} at (0,0) size 784x18
- RenderInline (generated) at (0,0) size 39x17
- RenderText at (0,0) size 39x17
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 218x17
- text run at (39,0) width 218: " < this should say still say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x576
- RenderBlock {UL} at (0,0) size 784x18
- RenderListItem {LI} at (40,0) size 744x18
- RenderListMarker at (-17,0) size 7x17: bullet
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,34) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x160
- RenderBlock {HTML} at (0,0) size 800x160
- RenderBody {BODY} at (8,16) size 784x136
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 357x17
- text run at (0,0) width 357: "Test passes if there is a box with rounded corners below."
- RenderBlock (run-in) {DIV} at (0,34) size 102x102 [border: (3px solid #008000)]
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x203
- RenderBlock {HTML} at (0,0) size 800x203
- RenderBody {BODY} at (8,8) size 784x187
- RenderBlock (anonymous) at (0,0) size 784x17
- RenderText {#text} at (0,0) size 51x17
- text run at (0,0) width 51: "Case A:"
- RenderBlock {DIV} at (0,17) size 784x34
- RenderBlock (run-in) {DIV} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 112x17
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (anonymous) at (0,17) size 784x17
- RenderInline {DIV} at (0,0) size 41x17
- RenderText {#text} at (0,0) size 41x17
- text run at (0,0) width 41: "run in."
- RenderText {#text} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,51) size 784x17
- RenderText {#text} at (0,0) size 50x17
- text run at (0,0) width 50: "Case B:"
- RenderBlock {DIV} at (0,68) size 784x34
- RenderBlock (run-in) {DIV} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 112x17
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (anonymous) at (0,17) size 784x17
- RenderText {#text} at (0,0) size 41x17
- text run at (0,0) width 41: "run in."
- RenderBlock (anonymous) at (0,102) size 784x17
- RenderText {#text} at (0,0) size 50x17
- text run at (0,0) width 50: "Case C:"
- RenderBlock {DIV} at (0,119) size 784x17
- RenderBlock {DIV} at (0,0) size 784x17
- RenderInline (run-in) {DIV} at (0,0) size 78x17
- RenderText {#text} at (0,0) size 78x17
- text run at (0,0) width 78: "This should "
- RenderText {#text} at (78,0) size 41x17
- text run at (78,0) width 41: "run in."
- RenderBlock (anonymous) at (0,136) size 784x17
- RenderText {#text} at (0,0) size 51x17
- text run at (0,0) width 51: "Case D:"
- RenderBlock {DIV} at (0,153) size 784x34
- RenderBlock (run-in) {DIV} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 112x17
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (run-in) {DIV} at (0,17) size 784x17
- RenderText {#text} at (0,0) size 41x17
- text run at (0,0) width 41: "run in."
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x49
- RenderBlock {HTML} at (0,0) size 800x49
- RenderBody {BODY} at (8,16) size 784x17
- RenderBlock {DL} at (0,0) size 784x17
- RenderBlock {DD} at (40,0) size 744x17
- RenderInline (run-in) {DT} at (0,0) size 38x17
- RenderText {#text} at (0,0) size 34x17
- text run at (0,0) width 34: "Term"
- RenderInline (generated) at (0,0) size 4x17
- RenderText at (34,0) size 4x17
- text run at (34,0) width 4: ":"
- RenderText {#text} at (38,0) size 64x17
- text run at (38,0) width 64: "Definition"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 53x17
- text run at (0,0) width 53: "Test for "
- RenderInline {I} at (0,0) size 500x17
- RenderInline {A} at (0,0) size 154x17 [color=#0000EE]
- RenderText {#text} at (53,0) size 154x17
- text run at (53,0) width 154: "rdar://problem/6777374"
- RenderText {#text} at (207,0) size 346x17
- text run at (207,0) width 4: " "
- text run at (211,0) width 342: "Generated content with display: run-in causes a crash"
- RenderText {#text} at (553,0) size 4x17
- text run at (553,0) width 4: "."
- RenderBlock {DIV} at (0,33) size 784x17
- RenderBlock {DIV} at (0,0) size 784x17
- RenderInline (generated) at (0,0) size 39x17
- RenderText at (0,0) size 39x17
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 167x17
- text run at (39,0) width 167: " < this should say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,33) size 784x17
- RenderBlock {DIV} at (0,0) size 784x17 [color=#0000FF]
- RenderInline (generated) at (0,0) size 39x17 [color=#000000]
- RenderText at (0,0) size 39x17
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 218x17
- text run at (39,0) width 218: " < this should say still say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,33) size 784x17 [color=#0000FF]
- RenderBlock {DIV} at (0,0) size 784x17
- RenderInline (generated) at (0,0) size 39x17
- RenderText at (0,0) size 39x17
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 218x17
- text run at (39,0) width 218: " < this should say still say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x576
- RenderBlock {UL} at (0,0) size 784x17
- RenderListItem {LI} at (40,0) size 744x17
- RenderListMarker at (-17,0) size 7x17: bullet
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,33) size 784x17
- RenderBlock {DIV} at (0,0) size 784x17
- RenderBlock {P} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 8x17
- text run at (0,0) width 8: "x"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x159
- RenderBlock {HTML} at (0,0) size 800x159
- RenderBody {BODY} at (8,16) size 784x135
- RenderBlock {P} at (0,0) size 784x17
- RenderText {#text} at (0,0) size 357x17
- text run at (0,0) width 357: "Test passes if there is a box with rounded corners below."
- RenderBlock (run-in) {DIV} at (0,33) size 102x102 [border: (3px solid #008000)]
-layer at (0,0) size 785x682
+layer at (0,0) size 785x642
RenderView at (0,0) size 785x600
-layer at (0,0) size 785x682
- RenderBlock {HTML} at (0,0) size 785x682
- RenderBody {BODY} at (8,8) size 769x666
+layer at (0,0) size 785x642
+ RenderBlock {HTML} at (0,0) size 785x642
+ RenderBody {BODY} at (8,8) size 769x626
RenderBlock {P} at (0,0) size 769x18
RenderText {#text} at (0,0) size 551x18
text run at (0,0) width 551: "This page has a few tables within form elements within divs with various display styles."
RenderText {#text} at (1,1) size 103x18
text run at (1,1) width 103: "display: list-item"
RenderBlock {DIV} at (0,206) size 769x24
- RenderBlock (run-in) {DIV} at (0,0) size 769x24
- RenderBlock {FORM} at (0,0) size 769x24
- RenderTable {TABLE} at (0,0) size 97x24
- RenderTableSection {TBODY} at (0,0) size 97x24
- RenderTableRow {TR} at (0,2) size 97x20
- RenderTableCell {TD} at (2,2) size 93x20 [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (1,1) size 91x18
- text run at (1,1) width 91: "display: run-in"
- RenderBlock {DIV} at (0,246) size 769x24
RenderBlock {DIV} at (0,0) size 769x24
RenderBlock {FORM} at (0,0) size 769x24
RenderTable {TABLE} at (0,0) size 112x24
RenderTableCell {TD} at (2,2) size 108x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 106x18
text run at (1,1) width 106: "display: compact"
- RenderBlock {DIV} at (0,286) size 769x40
+ RenderBlock {DIV} at (0,246) size 769x40
RenderBlock {DIV} at (0,0) size 134x40
RenderBlock {FORM} at (0,0) size 134x24
RenderTable {TABLE} at (0,0) size 134x24
RenderTableCell {TD} at (2,2) size 130x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 128x18
text run at (1,1) width 128: "display: inline-block"
- RenderBlock {DIV} at (0,326) size 769x40
+ RenderBlock {DIV} at (0,286) size 769x40
RenderTable {DIV} at (0,0) size 89x40
RenderTableSection (anonymous) at (0,0) size 89x40
RenderTableRow (anonymous) at (0,0) size 89x40
RenderTableCell {TD} at (2,2) size 85x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 83x18
text run at (1,1) width 83: "display: table"
- RenderBlock {DIV} at (0,366) size 769x40
+ RenderBlock {DIV} at (0,326) size 769x40
RenderTable {DIV} at (0,0) size 129x40
RenderTableSection (anonymous) at (0,0) size 129x40
RenderTableRow (anonymous) at (0,0) size 129x40
RenderTableCell {TD} at (2,2) size 125x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 123x18
text run at (1,1) width 123: "display: inline-table"
- RenderBlock {DIV} at (0,406) size 769x40
+ RenderBlock {DIV} at (0,366) size 769x40
RenderTable at (0,0) size 161x40
RenderTableSection {DIV} at (0,0) size 161x40
RenderTableRow (anonymous) at (0,0) size 161x40
RenderTableCell {TD} at (2,2) size 157x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 155x18
text run at (1,1) width 155: "display: table-row-group"
- RenderBlock {DIV} at (0,446) size 769x40
+ RenderBlock {DIV} at (0,406) size 769x40
RenderTable at (0,0) size 178x40
RenderTableSection {DIV} at (0,0) size 178x40
RenderTableRow (anonymous) at (0,0) size 178x40
RenderTableCell {TD} at (2,2) size 174x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 172x18
text run at (1,1) width 172: "display: table-header-group"
- RenderBlock {DIV} at (0,486) size 769x40
+ RenderBlock {DIV} at (0,446) size 769x40
RenderTable at (0,0) size 173x40
RenderTableSection {DIV} at (0,0) size 173x40
RenderTableRow (anonymous) at (0,0) size 173x40
RenderTableCell {TD} at (2,2) size 169x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 167x18
text run at (1,1) width 167: "display: table-footer-group"
- RenderBlock {DIV} at (0,526) size 769x40
+ RenderBlock {DIV} at (0,486) size 769x40
RenderTable at (0,0) size 119x40
RenderTableSection (anonymous) at (0,0) size 119x40
RenderTableRow {DIV} at (0,0) size 119x40
RenderTableCell {TD} at (2,2) size 115x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 113x18
text run at (1,1) width 113: "display: table-row"
- RenderBlock {DIV} at (0,566) size 769x0
+ RenderBlock {DIV} at (0,526) size 769x0
RenderTable at (0,0) size 0x0
RenderTableCol {DIV} at (0,0) size 0x0
- RenderBlock {DIV} at (0,566) size 769x0
+ RenderBlock {DIV} at (0,526) size 769x0
RenderTable at (0,0) size 0x0
RenderTableCol {DIV} at (0,0) size 0x0
- RenderBlock {DIV} at (0,566) size 769x40
+ RenderBlock {DIV} at (0,526) size 769x40
RenderTable at (0,0) size 116x40
RenderTableSection (anonymous) at (0,0) size 116x40
RenderTableRow (anonymous) at (0,0) size 116x40
RenderTableCell {TD} at (2,2) size 112x20 [r=0 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 110x18
text run at (1,1) width 110: "display: table-cell"
- RenderBlock {DIV} at (0,606) size 769x60
+ RenderBlock {DIV} at (0,566) size 769x60
RenderTable at (0,0) size 55x60
RenderBlock {DIV} at (0,0) size 55x60
RenderBlock {FORM} at (0,0) size 55x60
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x214
- RenderBlock {HTML} at (0,0) size 800x214
- RenderBody {BODY} at (8,8) size 784x198
- RenderBlock (anonymous) at (0,0) size 784x18
- RenderText {#text} at (0,0) size 51x18
- text run at (0,0) width 51: "Case A:"
- RenderBlock {DIV} at (0,18) size 784x36
- RenderBlock (run-in) {DIV} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 112x18
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (anonymous) at (0,18) size 784x18
- RenderInline {DIV} at (0,0) size 41x18
- RenderText {#text} at (0,0) size 41x18
- text run at (0,0) width 41: "run in."
- RenderText {#text} at (0,0) size 0x0
- RenderBlock (anonymous) at (0,54) size 784x18
- RenderText {#text} at (0,0) size 50x18
- text run at (0,0) width 50: "Case B:"
- RenderBlock {DIV} at (0,72) size 784x36
- RenderBlock (run-in) {DIV} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 112x18
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (anonymous) at (0,18) size 784x18
- RenderText {#text} at (0,0) size 41x18
- text run at (0,0) width 41: "run in."
- RenderBlock (anonymous) at (0,108) size 784x18
- RenderText {#text} at (0,0) size 50x18
- text run at (0,0) width 50: "Case C:"
- RenderBlock {DIV} at (0,126) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18
- RenderInline (run-in) {DIV} at (0,0) size 78x18
- RenderText {#text} at (0,0) size 78x18
- text run at (0,0) width 78: "This should "
- RenderText {#text} at (78,0) size 41x18
- text run at (78,0) width 41: "run in."
- RenderBlock (anonymous) at (0,144) size 784x18
- RenderText {#text} at (0,0) size 51x18
- text run at (0,0) width 51: "Case D:"
- RenderBlock {DIV} at (0,162) size 784x36
- RenderBlock (run-in) {DIV} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 112x18
- text run at (0,0) width 112: "This should NOT"
- RenderBlock (run-in) {DIV} at (0,18) size 784x18
- RenderText {#text} at (0,0) size 41x18
- text run at (0,0) width 41: "run in."
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x50
- RenderBlock {HTML} at (0,0) size 800x50
- RenderBody {BODY} at (8,16) size 784x18
- RenderBlock {DL} at (0,0) size 784x18
- RenderBlock {DD} at (40,0) size 744x18
- RenderInline (run-in) {DT} at (0,0) size 38x18
- RenderText {#text} at (0,0) size 34x18
- text run at (0,0) width 34: "Term"
- RenderInline (generated) at (0,0) size 4x18
- RenderText at (34,0) size 4x18
- text run at (34,0) width 4: ":"
- RenderText {#text} at (38,0) size 64x18
- text run at (38,0) width 64: "Definition"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 53x18
- text run at (0,0) width 53: "Test for "
- RenderInline {I} at (0,0) size 500x18
- RenderInline {A} at (0,0) size 154x18 [color=#0000EE]
- RenderText {#text} at (53,0) size 154x18
- text run at (53,0) width 154: "rdar://problem/6777374"
- RenderText {#text} at (207,0) size 346x18
- text run at (207,0) width 4: " "
- text run at (211,0) width 342: "Generated content with display: run-in causes a crash"
- RenderText {#text} at (553,0) size 4x18
- text run at (553,0) width 4: "."
- RenderBlock {DIV} at (0,34) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18
- RenderInline (generated) at (0,0) size 39x18
- RenderText at (0,0) size 39x18
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 167x18
- text run at (39,0) width 167: " < this should say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 8x18
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,34) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18 [color=#0000FF]
- RenderInline (generated) at (0,0) size 39x18 [color=#000000]
- RenderText at (0,0) size 39x18
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 218x18
- text run at (39,0) width 218: " < this should say still say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 8x18
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,34) size 784x18 [color=#0000FF]
- RenderBlock {DIV} at (0,0) size 784x18
- RenderInline (generated) at (0,0) size 39x18
- RenderText at (0,0) size 39x18
- text run at (0,0) width 39: "PASS"
- RenderText {#text} at (39,0) size 218x18
- text run at (39,0) width 218: " < this should say still say \x{201C}PASS\x{201D}"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x576
- RenderBlock {UL} at (0,0) size 784x18
- RenderListItem {LI} at (40,0) size 744x18
- RenderListMarker at (-17,0) size 7x18: bullet
- RenderText {#text} at (0,0) size 8x18
- text run at (0,0) width 8: "x"
- RenderBlock {DIV} at (0,34) size 784x18
- RenderBlock {DIV} at (0,0) size 784x18
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 8x18
- text run at (0,0) width 8: "x"
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x160
- RenderBlock {HTML} at (0,0) size 800x160
- RenderBody {BODY} at (8,16) size 784x136
- RenderBlock {P} at (0,0) size 784x18
- RenderText {#text} at (0,0) size 357x18
- text run at (0,0) width 357: "Test passes if there is a box with rounded corners below."
- RenderBlock (run-in) {DIV} at (0,34) size 102x102 [border: (3px solid #008000)]
+++ /dev/null
-Test for https://bugs.webkit.org/show_bug.cgi?id=12052. Before the change, display: run-in; with non-RenderBlock element hit ASSERTion and run-in video made Safari crash.
-
-PASS
-PASS
+2014-02-06 Andreas Kling <akling@apple.com>
+
+ Remove display:run-in support.
+ <https://webkit.org/b/127874>
+ <rdar://problem/15926949>
+
+ Remove support for the "run-in" display type. Blink recently removed
+ this and Gecko never supported in the first place.
+
+ Rubber-stamped by Anders Carlsson.
+
+ * css/CSSParser.cpp:
+ (WebCore::isValidKeywordPropertyAndValue):
+ * css/CSSPrimitiveValueMappings.h:
+ (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
+ * css/CSSValueKeywords.in:
+ * css/StyleResolver.cpp:
+ (WebCore::equivalentBlockDisplay):
+ (WebCore::doesNotInheritTextDecoration):
+ * rendering/RenderBlock.cpp:
+ (WebCore::RenderBlock::willBeDestroyed):
+ (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
+ (WebCore::RenderBlock::makeChildrenNonInline):
+ (WebCore::canMergeContiguousAnonymousBlocks):
+ (WebCore::RenderBlock::renderName):
+ * rendering/RenderBlock.h:
+ * rendering/RenderBlockFlow.cpp:
+ (WebCore::RenderBlockFlow::willBeDestroyed):
+ (WebCore::shouldCheckLines):
+ (WebCore::getHeightForLineCount):
+ * rendering/RenderElement.cpp:
+ (WebCore::RenderElement::createFor):
+ (WebCore::RenderElement::destroyLeftoverChildren):
+ * rendering/RenderFileUploadControl.cpp:
+ * rendering/RenderFileUploadControl.h:
+ * rendering/RenderInline.cpp:
+ (WebCore::RenderInline::updateFromStyle):
+ (WebCore::RenderInline::renderName):
+ (WebCore::RenderInline::clippedOverflowRectForRepaint):
+ * rendering/RenderListBox.cpp:
+ * rendering/RenderListBox.h:
+ * rendering/RenderMenuList.cpp:
+ * rendering/RenderMenuList.h:
+ * rendering/RenderObject.cpp:
+ * rendering/RenderObject.h:
+ * rendering/RenderProgress.cpp:
+ * rendering/RenderProgress.h:
+ * rendering/RenderSlider.cpp:
+ * rendering/RenderSlider.h:
+ * rendering/RenderTextControl.cpp:
+ * rendering/RenderTextControl.h:
+ * rendering/RenderTheme.cpp:
+ (WebCore::RenderTheme::adjustStyle):
+ * rendering/style/RenderStyleConstants.h:
+
2014-02-06 Andreas Kling <akling@apple.com>
Remove leftover cruft from scoped stylesheet implementation.
return true;
break;
case CSSPropertyDisplay:
- // inline | block | list-item | run-in | inline-block | table |
+ // inline | block | list-item | inline-block | table |
// inline-table | table-row-group | table-header-group | table-footer-group | table-row |
// table-column-group | table-column | table-cell | table-caption | -webkit-box | -webkit-inline-box | none | inherit
// -webkit-flex | -webkit-inline-flex | -webkit-grid | -webkit-inline-grid
case LIST_ITEM:
m_value.valueID = CSSValueListItem;
break;
- case RUN_IN:
- m_value.valueID = CSSValueRunIn;
- break;
case COMPACT:
m_value.valueID = CSSValueCompact;
break;
inline
block
list-item
-run-in
compact
inline-block
table
return GRID;
case INLINE:
- case RUN_IN:
case COMPACT:
case INLINE_BLOCK:
case TABLE_ROW_GROUP:
}
// CSS requires text-decoration to be reset at each DOM element for tables,
-// inline blocks, inline tables, run-ins, shadow DOM crossings, floating elements,
+// inline blocks, inline tables, shadow DOM crossings, floating elements,
// and absolute or relatively positioned elements.
static bool doesNotInheritTextDecoration(const RenderStyle& style, Element* e)
{
- return style.display() == TABLE || style.display() == INLINE_TABLE || style.display() == RUN_IN
+ return style.display() == TABLE || style.display() == INLINE_TABLE
|| style.display() == INLINE_BLOCK || style.display() == INLINE_BOX || isAtShadowBoundary(e)
|| style.isFloating() || style.hasOutOfFlowPosition();
}
// Mark as being destroyed to avoid trouble with merges in removeChild().
m_beingDestroyed = true;
- if (!documentBeingDestroyed()) {
- if (firstChild() && firstChild()->isRunIn())
- moveRunInToOriginalPosition(*firstChild());
- }
-
// Make sure to destroy anonymous children first while they are still connected to the rest of the tree, so that they will
// properly dirty line boxes that they are removed from. Effects that do :before/:after only on hover could crash otherwise.
destroyLeftoverChildren();
// safe fallback to use the topmost beforeChild container.
beforeChild = beforeChildContainer;
}
- } else {
- // We will reach here when beforeChild is a run-in element.
- // If run-in element precedes a block-level element, it becomes the
- // the first inline child of that block level element. The insertion
- // point will be before that block-level element.
- ASSERT(beforeChild->isRunIn());
- beforeChild = beforeChildContainer;
}
}
- // Nothing goes before the intruded run-in.
- if (beforeChild && beforeChild->isRunIn() && runInIsPlacedIntoSiblingBlock(*beforeChild))
- beforeChild = beforeChild->nextSibling();
-
// Check for a spanning element in columns.
if (gColumnFlowSplitEnabled) {
RenderBlock* columnsBlockAncestor = columnsBlockForSpanningElement(newChild);
RenderBox::addChild(newChild, beforeChild);
- // Handle placement of run-ins.
- placeRunInIfNeeded(*newChild);
-
if (madeBoxesNonInline && parent() && isAnonymousBlock() && parent()->isRenderBlock())
toRenderBlock(parent())->removeLeftoverAnonymousBlock(this);
// this object may be dead here
deleteLines();
- // Since we are going to have block children, we have to move
- // back the run-in to its original place.
- if (child->isRunIn()) {
- moveRunInToOriginalPosition(*child);
- child = firstChild();
- }
-
while (child) {
RenderObject* inlineRunStart;
RenderObject* inlineRunEnd;
RenderBlock* previousAnonymousBlock = toRenderBlock(previous);
if (!canMergeAnonymousBlock(previousAnonymousBlock))
return false;
- // FIXME: This check isn't required when inline run-ins can't be split into continuations.
- RenderObject* child = previousAnonymousBlock->firstChild();
- if (child && child->isInline() && child->isRunIn())
- return false;
}
if (next) {
if (!next->isAnonymousBlock())
|| hasColumns() || isTableCell() || isTableCaption() || isFieldset() || isWritingModeRoot() || isRoot();
}
-static void destroyRunIn(RenderBoxModelObject& runIn)
-{
- ASSERT(runIn.isRunIn());
- ASSERT(!runIn.firstChild());
-
- // Delete our line box tree. This is needed as our children got moved
- // and our line box tree is no longer valid.
- if (runIn.isRenderBlock())
- toRenderBlock(runIn).deleteLines();
- else if (runIn.isRenderInline())
- toRenderInline(runIn).deleteLines();
- else
- ASSERT_NOT_REACHED();
-
- runIn.destroy();
-}
-
-void RenderBlock::placeRunInIfNeeded(RenderObject& newChild)
-{
- if (newChild.isRunIn())
- moveRunInUnderSiblingBlockIfNeeded(newChild);
- else if (RenderObject* prevSibling = newChild.previousSibling()) {
- if (prevSibling->isRunIn())
- moveRunInUnderSiblingBlockIfNeeded(*prevSibling);
- }
-}
-
-RenderBoxModelObject& RenderBlock::createReplacementRunIn(RenderBoxModelObject& runIn)
-{
- ASSERT(runIn.isRunIn());
- ASSERT(runIn.element());
-
- RenderBoxModelObject* newRunIn = 0;
- if (!runIn.isRenderBlockFlow())
- newRunIn = new RenderBlockFlow(*runIn.element(), runIn.style());
- else
- newRunIn = new RenderInline(*runIn.element(), runIn.style());
-
- runIn.element()->setRenderer(newRunIn);
- newRunIn->initializeStyle();
-
- runIn.moveAllChildrenTo(newRunIn, true);
-
- return *newRunIn;
-}
-
-void RenderBlock::moveRunInUnderSiblingBlockIfNeeded(RenderObject& runIn)
-{
- ASSERT(runIn.isRunIn());
-
- // See if we have inline children. If the children aren't inline,
- // then just treat the run-in as a normal block.
- if (!runIn.childrenInline())
- return;
-
- // FIXME: We don't handle non-block elements with run-in for now.
- if (!runIn.isRenderBlockFlow())
- return;
-
- // FIXME: We don't support run-ins with or as part of a continuation
- // as it makes the back-and-forth placing complex.
- if (runIn.isElementContinuation() || runIn.virtualContinuation())
- return;
-
- // Check if this node is allowed to run-in. E.g. <select> expects its renderer to
- // be a RenderListBox or RenderMenuList, and hence cannot be a RenderInline run-in.
- if (!runIn.canBeReplacedWithInlineRunIn())
- return;
-
- RenderObject* curr = runIn.nextSibling();
- if (!curr || !curr->isRenderBlock() || !curr->childrenInline())
- return;
-
- RenderBlock& nextSiblingBlock = toRenderBlock(*curr);
- if (nextSiblingBlock.beingDestroyed())
- return;
-
- // Per CSS3, "A run-in cannot run in to a block that already starts with a
- // run-in or that itself is a run-in".
- if (nextSiblingBlock.isRunIn() || (nextSiblingBlock.firstChild() && nextSiblingBlock.firstChild()->isRunIn()))
- return;
-
- if (nextSiblingBlock.isAnonymous() || nextSiblingBlock.isFloatingOrOutOfFlowPositioned())
- return;
-
- RenderBoxModelObject& oldRunIn = toRenderBoxModelObject(runIn);
- RenderBoxModelObject& newRunIn = createReplacementRunIn(oldRunIn);
- destroyRunIn(oldRunIn);
-
- // Now insert the new child under |curr| block. Use addChild instead of insertChildNode
- // since it handles correct placement of the children, especially where we cannot insert
- // anything before the first child. e.g. details tag. See https://bugs.webkit.org/show_bug.cgi?id=58228.
- nextSiblingBlock.addChild(&newRunIn, nextSiblingBlock.firstChild());
-
- // Make sure that |this| get a layout since its run-in child moved.
- nextSiblingBlock.setNeedsLayoutAndPrefWidthsRecalc();
-}
-
-bool RenderBlock::runInIsPlacedIntoSiblingBlock(RenderObject& runIn)
-{
- ASSERT(runIn.isRunIn());
-
- // If we don't have a parent, we can't be moved into our sibling block.
- if (!parent())
- return false;
-
- // An intruded run-in needs to be an inline.
- if (!runIn.isRenderInline())
- return false;
-
- return true;
-}
-
-void RenderBlock::moveRunInToOriginalPosition(RenderObject& runIn)
-{
- ASSERT(runIn.isRunIn());
-
- if (!runInIsPlacedIntoSiblingBlock(runIn))
- return;
-
- // FIXME: Run-in that are now placed in sibling block can break up into continuation
- // chains when new children are added to it. We cannot easily send them back to their
- // original place since that requires writing integration logic with RenderInline::addChild
- // and all other places that might cause continuations to be created (without blowing away
- // |this|). Disabling this feature for now to prevent crashes.
- if (runIn.isElementContinuation() || runIn.virtualContinuation())
- return;
-
- RenderBoxModelObject& oldRunIn = toRenderBoxModelObject(runIn);
- RenderBoxModelObject& newRunIn = createReplacementRunIn(oldRunIn);
- destroyRunIn(oldRunIn);
-
- // Add the run-in block as our previous sibling.
- parent()->addChild(&newRunIn, this);
-
- // Make sure that the parent holding the new run-in gets layout.
- parent()->setNeedsLayoutAndPrefWidthsRecalc();
-}
LayoutUnit RenderBlock::computeStartPositionDeltaForChildAvoidingFloats(const RenderBox& child, LayoutUnit childMarginStart, RenderRegion* region)
{
return "RenderBlock (relative positioned)";
if (isStickyPositioned())
return "RenderBlock (sticky positioned)";
- if (isRunIn())
- return "RenderBlock (run-in)";
return "RenderBlock";
}
LayoutUnit computeStartPositionDeltaForChildAvoidingFloats(const RenderBox& child, LayoutUnit childMarginStart, RenderRegion* = 0);
- void placeRunInIfNeeded(RenderObject& newChild);
- bool runInIsPlacedIntoSiblingBlock(RenderObject& runIn);
-
#ifndef NDEBUG
void checkPositionedObjectsNeedLayout();
virtual void showLineTreeAndMark(const InlineBox* = nullptr, const char* = nullptr, const InlineBox* = nullptr, const char* = nullptr, const RenderObject* = nullptr) const;
RenderBlock* containingColumnsBlock(bool allowAnonymousColumnBlock = true);
RenderBlock* columnsBlockForSpanningElement(RenderObject* newChild);
- RenderBoxModelObject& createReplacementRunIn(RenderBoxModelObject& runIn);
- void moveRunInUnderSiblingBlockIfNeeded(RenderObject& runIn);
- void moveRunInToOriginalPosition(RenderObject& runIn);
-
private:
bool hasRareData() const;
if (renderNamedFlowFragment())
setRenderNamedFlowFragment(0);
- if (!documentBeingDestroyed()) {
- if (firstChild() && firstChild()->isRunIn())
- moveRunInToOriginalPosition(*firstChild());
- }
-
// Make sure to destroy anonymous children first while they are still connected to the rest of the tree, so that they will
// properly dirty line boxes that they are removed from. Effects that do :before/:after only on hover could crash otherwise.
destroyLeftoverChildren();
static bool shouldCheckLines(const RenderBlockFlow& blockFlow)
{
- return !blockFlow.isFloatingOrOutOfFlowPositioned() && !blockFlow.isRunIn() && blockFlow.style().height().isAuto();
+ return !blockFlow.isFloatingOrOutOfFlowPositioned() && blockFlow.style().height().isAuto();
}
RootInlineBox* RenderBlockFlow::lineAtIndex(int i) const
int result = getHeightForLineCount(toRenderBlockFlow(*obj), lineCount, false, count);
if (result != -1)
return result + obj->y() + (includeBottom ? (block.borderBottom() + block.paddingBottom()) : LayoutUnit());
- } else if (!obj->isFloatingOrOutOfFlowPositioned() && !obj->isRunIn())
+ } else if (!obj->isFloatingOrOutOfFlowPositioned())
normalFlowChildWithoutLines = obj;
}
if (normalFlowChildWithoutLines && !lineCount)
return createRenderer<RenderInline>(element, std::move(style));
case BLOCK:
case INLINE_BLOCK:
- case RUN_IN:
case COMPACT:
return createRenderer<RenderBlockFlow>(element, std::move(style));
case LIST_ITEM:
void RenderElement::destroyLeftoverChildren()
{
while (m_firstChild) {
- if (m_firstChild->isListMarker() || (m_firstChild->style().styleType() == FIRST_LETTER && !m_firstChild->isText()))
+ if (m_firstChild->isListMarker() || (m_firstChild->style().styleType() == FIRST_LETTER && !m_firstChild->isText())) {
m_firstChild->removeFromParent(); // List markers are owned by their enclosing list and so don't get destroyed by this container. Similarly, first letters are destroyed by their remaining text fragment.
- else if (m_firstChild->isRunIn() && m_firstChild->node()) {
- m_firstChild->node()->setRenderer(nullptr);
- m_firstChild->node()->setNeedsStyleRecalc();
- m_firstChild->destroy();
} else {
// Destroy any anonymous children remaining in the render tree, as well as implicit (shadow) DOM elements like those used in the engine-based text fields.
if (m_firstChild->node())
return toHTMLInputElement(nodeForNonAnonymous());
}
-bool RenderFileUploadControl::canBeReplacedWithInlineRunIn() const
-{
- return false;
-}
-
void RenderFileUploadControl::updateFromElement()
{
ASSERT(inputElement().isFileUpload());
virtual const char* renderName() const override { return "RenderFileUploadControl"; }
- virtual bool canBeReplacedWithInlineRunIn() const override;
virtual void updateFromElement() override;
virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
virtual void computePreferredLogicalWidths() override;
{
RenderBoxModelObject::updateFromStyle();
- setInline(true); // Needed for run-ins, since run-in is considered a block display type.
-
// FIXME: Support transforms and reflections on inline flows someday.
setHasTransform(false);
setHasReflection(false);
return "RenderInline (generated)";
if (isAnonymous())
return "RenderInline (generated)";
- if (isRunIn())
- return "RenderInline (run-in)";
return "RenderInline";
}
LayoutRect RenderInline::clippedOverflowRectForRepaint(const RenderLayerModelObject* repaintContainer) const
{
- // Only run-ins and first-letter renderers are allowed in here during layout. They mutate the tree triggering repaints.
- ASSERT(!view().layoutStateEnabled() || isRunIn() || style().styleType() == FIRST_LETTER);
+ // Only first-letter renderers are allowed in here during layout. They mutate the tree triggering repaints.
+ ASSERT(!view().layoutStateEnabled() || style().styleType() == FIRST_LETTER);
if (!firstLineBoxIncludingCulling() && !continuation())
return LayoutRect();
}
}
-bool RenderListBox::canBeReplacedWithInlineRunIn() const
-{
- return false;
-}
-
void RenderListBox::selectionChanged()
{
repaint();
virtual bool isListBox() const override { return true; }
virtual void updateFromElement() override;
- virtual bool canBeReplacedWithInlineRunIn() const override;
virtual bool hasControlClip() const override { return true; }
virtual void paintObject(PaintInfo&, const LayoutPoint&) override;
virtual LayoutRect controlClipRect(const LayoutPoint&) const override;
#endif
}
-bool RenderMenuList::canBeReplacedWithInlineRunIn() const
-{
- return false;
-}
-
void RenderMenuList::createInnerBlock()
{
if (m_innerBlock) {
virtual LayoutRect controlClipRect(const LayoutPoint&) const override;
virtual bool hasControlClip() const override { return true; }
virtual bool canHaveGeneratedChildren() const override { return false; }
- virtual bool canBeReplacedWithInlineRunIn() const override;
virtual const char* renderName() const override { return "RenderMenuList"; }
return toPseudoElement(node())->hostElement();
}
-bool RenderObject::canBeReplacedWithInlineRunIn() const
-{
- return true;
-}
-
void RenderObject::setNeedsBoundariesUpdate()
{
if (auto renderer = parent())
bool isBox() const { return m_bitfields.isBox(); }
bool isRenderView() const { return m_bitfields.isBox() && m_bitfields.isTextOrRenderView(); }
bool isInline() const { return m_bitfields.isInline(); } // inline object
- bool isRunIn() const { return style().display() == RUN_IN; } // run-in object
bool isDragging() const { return m_bitfields.isDragging(); }
bool isReplaced() const { return m_bitfields.isReplaced(); } // a "replaced" element (see CSS)
bool isHorizontalWritingMode() const { return m_bitfields.horizontalWritingMode(); }
void clearLayoutRootIfNeeded() const;
virtual void willBeDestroyed();
- virtual bool canBeReplacedWithInlineRunIn() const;
-
virtual void insertedIntoTree();
virtual void willBeRemovedFromTree();
computedValues.m_extent = isHorizontalWritingMode() ? frameSize.height() : frameSize.width();
}
-bool RenderProgress::canBeReplacedWithInlineRunIn() const
-{
- return false;
-}
-
double RenderProgress::animationProgress() const
{
return m_animating ? (fmod((monotonicallyIncreasingTime() - m_animationStartTime), m_animationDuration) / m_animationDuration) : 0;
virtual const char* renderName() const override { return "RenderProgress"; }
virtual bool isProgress() const override { return true; }
virtual bool requiresForcedStyleRecalcPropagation() const override { return true; }
- virtual bool canBeReplacedWithInlineRunIn() const override;
virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;
void animationTimerFired(Timer<RenderProgress>&);
return toHTMLInputElement(nodeForNonAnonymous());
}
-bool RenderSlider::canBeReplacedWithInlineRunIn() const
-{
- return false;
-}
-
int RenderSlider::baselinePosition(FontBaseline, bool /*firstLine*/, LineDirectionMode, LinePositionMode) const
{
// FIXME: Patch this function for writing-mode.
private:
virtual const char* renderName() const override { return "RenderSlider"; }
virtual bool isSlider() const override { return true; }
- virtual bool canBeReplacedWithInlineRunIn() const override;
virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override;
virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
}
#endif
-bool RenderTextControl::canBeReplacedWithInlineRunIn() const
-{
- return false;
-}
-
} // namespace WebCore
virtual void removeLeftoverAnonymousBlock(RenderBlock*) override { }
virtual bool avoidsFloats() const override { return true; }
virtual bool canHaveGeneratedChildren() const override { return false; }
- virtual bool canBeReplacedWithInlineRunIn() const override;
virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer = 0) override;
|| style.display() == TABLE_ROW || style.display() == TABLE_COLUMN_GROUP || style.display() == TABLE_COLUMN
|| style.display() == TABLE_CELL || style.display() == TABLE_CAPTION)
style.setDisplay(INLINE_BLOCK);
- else if (style.display() == COMPACT || style.display() == RUN_IN || style.display() == LIST_ITEM || style.display() == TABLE)
+ else if (style.display() == COMPACT || style.display() == LIST_ITEM || style.display() == TABLE)
style.setDisplay(BLOCK);
if (UAHasAppearance && isControlStyled(&style, border, background, backgroundColor)) {
// The order of this enum must match the order of the display values in CSSValueKeywords.in.
enum EDisplay {
- INLINE, BLOCK, LIST_ITEM, RUN_IN, COMPACT, INLINE_BLOCK,
+ INLINE, BLOCK, LIST_ITEM, COMPACT, INLINE_BLOCK,
TABLE, INLINE_TABLE, TABLE_ROW_GROUP,
TABLE_HEADER_GROUP, TABLE_FOOTER_GROUP, TABLE_ROW,
TABLE_COLUMN_GROUP, TABLE_COLUMN, TABLE_CELL,
+2014-02-06 Andreas Kling <akling@apple.com>
+
+ Remove display:run-in support.
+ <https://webkit.org/b/127874>
+ <rdar://problem/15926949>
+
+ Rubber-stamped by Anders Carlsson.
+
+ * UserInterface/CSSKeywordCompletions.js:
+ * UserInterface/External/CodeMirror/css.js:
+
2014-02-05 Brian Burg <bburg@apple.com>
Web Inspector: add probe manager and model objects to the frontend
"mathematical", "use-script", "no-change", "reset-size"
],
"display": [
- "none", "inline", "block", "list-item", "run-in", "compact", "inline-block", "table", "inline-table",
+ "none", "inline", "block", "list-item", "compact", "inline-block", "table", "inline-table",
"table-row-group", "table-header-group", "table-footer-group", "table-row", "table-column-group",
"table-column", "table-cell", "table-caption", "-webkit-box", "-webkit-inline-box", "-wap-marquee",
"-webkit-flex", "-webkit-inline-flex", "-webkit-grid", "-webkit-inline-grid"
"polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button",
"radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region",
"relative", "repeat", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba",
- "ridge", "right", "round", "row-resize", "rtl", "run-in", "running",
+ "ridge", "right", "round", "row-resize", "rtl", "running",
"s-resize", "sans-serif", "scroll", "scrollbar", "se-resize", "searchfield",
"searchfield-cancel-button", "searchfield-decoration",
"searchfield-results-button", "searchfield-results-decoration",