Commit d428227a authored by tasak@google.com's avatar tasak@google.com

HTMLOListElement::updateListItem should update distribution if needed.

BUG=353233
TEST=fast/dom/shadow/ol-with-distribution-recalc-crash.html

Review URL: https://codereview.chromium.org/204343002

git-svn-id: svn://svn.chromium.org/blink/trunk@169615 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 144b78b3
<!DOCTYPE html>
<html>
<body>
<ol reversed>
<li>1</li>
<li>2</li>
</ol>
<video></video>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<script>
onload = function() {
document.body.offsetLeft;
var video = document.createElement('video');
var ol = document.querySelector('ol');
document.body.appendChild(video);
ol.setAttribute('reversed', 'reversed');
}
</script>
</head>
<body>
<ol>
<li>1</li>
<li>2</li>
</ol>
</body>
</html>
...@@ -100,6 +100,9 @@ void HTMLOListElement::setStart(int start) ...@@ -100,6 +100,9 @@ void HTMLOListElement::setStart(int start)
void HTMLOListElement::updateItemValues() void HTMLOListElement::updateItemValues()
{ {
if (!renderer())
return;
document().updateDistributionForNodeIfNeeded(this);
RenderListItem::updateItemValuesForOrderedList(this); RenderListItem::updateItemValuesForOrderedList(this);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment