Commit 9709668a authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

[Squad] Retrieve old ComputedStyle as const.

No need to use MutableComputedStyle there.

Bug: 813068
Change-Id: If1ce7d3048af3ae7085ad09dd04350a5d4f1dd67
Reviewed-on: https://chromium-review.googlesource.com/980537Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546094}
parent b5a37f9a
...@@ -2198,7 +2198,7 @@ StyleRecalcChange Element::RecalcOwnStyle(StyleRecalcChange change) { ...@@ -2198,7 +2198,7 @@ StyleRecalcChange Element::RecalcOwnStyle(StyleRecalcChange change) {
DCHECK(change >= kIndependentInherit || NeedsStyleRecalc()); DCHECK(change >= kIndependentInherit || NeedsStyleRecalc());
DCHECK(ParentComputedStyle()); DCHECK(ParentComputedStyle());
scoped_refptr<ComputedStyle> old_style = MutableComputedStyle(); scoped_refptr<const ComputedStyle> old_style = GetComputedStyle();
// When propagating inherited changes, we don't need to do a full style recalc // When propagating inherited changes, we don't need to do a full style recalc
// if the only changed properties are independent. In this case, we can simply // if the only changed properties are independent. In this case, we can simply
......
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