Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(948)

Unified Diff: Source/core/html/HTMLOListElement.cpp

Issue 204343002: HTMLOListElement::updateListItem should update distribution if needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/shadow/ol-with-distribution-recalc-crash-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOListElement.cpp
diff --git a/Source/core/html/HTMLOListElement.cpp b/Source/core/html/HTMLOListElement.cpp
index 03675516a07b026b48c3e4c96dfb38d4d45bef16..f13880c80d847d420c38ada710a873eece5ca8bb 100644
--- a/Source/core/html/HTMLOListElement.cpp
+++ b/Source/core/html/HTMLOListElement.cpp
@@ -100,6 +100,9 @@ void HTMLOListElement::setStart(int start)
void HTMLOListElement::updateItemValues()
{
+ if (!renderer())
+ return;
+ document().updateDistributionForNodeIfNeeded(this);
RenderListItem::updateItemValuesForOrderedList(this);
}
« no previous file with comments | « LayoutTests/fast/dom/shadow/ol-with-distribution-recalc-crash-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698