Bug 1544590 - Add the missing change hint for 'counter-set'. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D27735

--HG--
extra : rebase_source : 6ea780a696ab0be9a717a45bbf39f01c168dec67
This commit is contained in:
Mats Palmgren 2019-04-16 01:01:13 +02:00
Родитель 1285f6a884
Коммит 4cc7de3535
5 изменённых файлов: 66 добавлений и 2 удалений

Просмотреть файл

@ -3647,7 +3647,8 @@ void nsStyleContent::TriggerImageLoads(Document& aDocument,
nsStyleContent::nsStyleContent(const nsStyleContent& aSource)
: mContents(aSource.mContents),
mIncrements(aSource.mIncrements),
mResets(aSource.mResets) {
mResets(aSource.mResets),
mSets(aSource.mSets) {
MOZ_COUNT_CTOR(nsStyleContent);
}
@ -3657,7 +3658,7 @@ nsChangeHint nsStyleContent::CalcDifference(
// a simple reflow will not pick up different text or different image URLs,
// since we set all that up in the CSSFrameConstructor
if (mContents != aNewData.mContents || mIncrements != aNewData.mIncrements ||
mResets != aNewData.mResets) {
mResets != aNewData.mResets || mSets != aNewData.mSets) {
return nsChangeHint_ReconstructFrame;
}

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>CSS Lists: dynamic update test for 'counter-set'</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
</head>
<body>
<ol><li></li></ol>
</body>
</html>

Просмотреть файл

@ -0,0 +1,17 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>CSS Lists: dynamic update test for 'counter-set'</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-lists/#propdef-counter-set">
<link rel="match" href="counter-set-002-ref.html">
</head>
<body onload="document.getElementById('item').style=''">
<noscript>Test not run - javascript required.</noscript>
<ol><li id="item" style="counter-increment: list-item 3"></li></ol>
</body>
</html>

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>HTML LI element: dynamic update test for LI @value</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
</head>
<body onload="document.getElementById('item').removeAttribute('value');">
<ol><li id="item" value="3"></li></ol>
</body>
</html>

Просмотреть файл

@ -0,0 +1,18 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>HTML LI element: dynamic update test for LI @value</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
<link rel="help" href="https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element">
<link rel="help" href="https://drafts.csswg.org/css-lists/#propdef-counter-set">
<link rel="match" href="grouping-li-reftest-003-ref.html">
</head>
<body onload="document.getElementById('item').removeAttribute('value');">
<noscript>Test not run - javascript required.</noscript>
<ol><li id="item" value="3"></li></ol>
</body>
</html>