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

Issue 247583003: Revert of Separate repaint and layout requirements of StyleDifference (Step 1) (Closed)

Created:
6 years, 8 months ago by aboxhall
Modified:
6 years, 8 months ago
CC:
blink-reviews, mstensho+blink_opera.com, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, blink-layers+watch_chromium.org, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, pdr., rwlbuis, Stephen Chennney, rune+blink
Visibility:
Public.

Description

Revert of Separate repaint and layout requirements of StyleDifference (Step 1) (https://codereview.chromium.org/236203020/) Reason for revert: Reason for revert: Depends on https://codereview.chromium.org/203463007/ which broke ChromeOS login window: https://code.google.com/p/chromium/issues/detail?id=365507 Original issue's description: > Separate repaint and layout requirements of StyleDifference (Step 1) > > Previously StyleDifference was an enum that proximately bigger values > imply smaller values (e.g. StyleDifferenceLayout implies > StyleDifferenceRepaint). This causes unnecessary repaints in some cases > on layout change. > > Convert StyleDifference to a structure containing relatively independent > flags. > > This change doesn't directly improve the result, but can make further > repaint optimizations possible. > > Step 1 doesn't change any functionality. RenderStyle still generate the > legacy StyleDifference enum when comparing styles and convert the result > to the new StyleDifference. Implicit requirements are not handled during > the conversion. > > Converted call sites to use the new StyleDifference according to the > following conversion rules: > - diff == StyleDifferenceEqual (&& !context) => diff.hasNoChange() > - diff == StyleDifferenceRepaint => diff.needsRepaintObjectOnly() > - diff == StyleDifferenceRepaintLayer => diff.needsRepaintLayer() > - diff == StyleDifferenceRepaint || diff == StyleDifferenceRepaintLayer => diff.needsRepaintLayer() > - diff >= StyleDifferenceRepaint => diff.needsRepaint() || diff.needsLayout() > - diff >= StyleDifferenceRepaintLayer => diff.needsRepaintLayer() || diff.needsLayout() > - diff > StyleDifferenceRepaintLayer => diff.needsLayout() > - diff == StyleDifferencePositionedMovementLayoutOnly => diff.needsPositionedMovementLayoutOnly() > - diff == StyleDifferenceLayout => diff.needsFullLayout() > > BUG=358460 > TEST=All existing layout tests. > R=eseidel@chromium.org, esprehn@chromium.org, jchaffraix@chromium.org > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171983 TBR=esprehn@chromium.org,jchaffraix@chromium.org,ojan@chromium.org,eseidel@chromium.org,wangxianzhu@chromium.org NOTREECHECKS=true NOTRY=true BUG=358460 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172173

Patch Set 1 #

Patch Set 2 : Local revert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -215 lines) Patch
M Source/core/editing/SimplifyMarkupCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 8 chunks +32 lines, -35 lines 0 comments Download
M Source/core/rendering/RenderScrollbarPart.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTableRow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderText.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTextControlSingleLine.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 chunks +3 lines, -8 lines 0 comments Download
M Source/core/rendering/style/RenderStyleConstants.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/rendering/style/SVGRenderStyle.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/SVGRenderStyle.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
D Source/core/rendering/style/StyleDifference.h View 1 1 chunk +0 lines, -117 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGBlock.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGGradientStop.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGInline.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGInlineText.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGModelObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceContainer.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceFilterPrimitive.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGRoot.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/rendering/svg/SVGInlineTextBox.cpp View 1 1 chunk +4 lines, -10 lines 0 comments Download
M Source/core/rendering/svg/SVGResourcesCache.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/SVGResourcesCache.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
aboxhall
Created Revert of Separate repaint and layout requirements of StyleDifference (Step 1)
6 years, 8 months ago (2014-04-22 20:14:42 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/247583003/1
6 years, 8 months ago (2014-04-22 20:15:18 UTC) #2
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 20:15:35 UTC) #3
commit-bot: I haz the power
Failed to apply patch for Source/core/rendering/RenderObject.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-22 20:15:35 UTC) #4
aboxhall
The CQ bit was checked by aboxhall@chromium.org
6 years, 8 months ago (2014-04-22 21:01:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/247583003/150001
6 years, 8 months ago (2014-04-22 21:02:05 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 21:04:17 UTC) #7
Message was sent while issue was closed.
Change committed as 172173

Powered by Google App Engine
This is Rietveld 408576698