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

Issue 231613002: Cleanup CompositingReasonFinder::requiresCompositingForPosition (Closed)

Created:
6 years, 8 months ago by ojan
Modified:
6 years, 8 months ago
CC:
blink-reviews, arv+blink, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, Inactive, jchaffraix+rendering, pdr., watchdog-blink-watchlist_google.com, rune+blink
Visibility:
Public.

Description

CompositingReasonFinder::requiresCompositingForPosition -Split up the sticky and fixed position logic as they're quite different. -Add a CompositingTrigger for viewport constrained positioned elements. This gets rid of the last use of settings in CompositingReasonFinder. Each other use has been high on profiles and it makes the code more consistent. -Get rid of redundant checks of renderer->isPositioned(), renderer->isOutOfFlowPositioned(), renderer->isInFlowPositioned() and !layer->stackingNode()->isStackingContainer(). All those bits are implied by the position being fixed or sticky. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171504

Patch Set 1 #

Patch Set 2 : don't force compositing mode #

Patch Set 3 : unmodify tests #

Patch Set 4 : unmodify test correctly #

Patch Set 5 : rebase to tip of tree #

Patch Set 6 : fix assert #

Total comments: 1

Patch Set 7 : make new methods private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -23 lines) Patch
M Source/core/frame/Settings.in View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositingReasonFinder.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/compositing/CompositingReasonFinder.cpp View 1 2 3 4 5 6 3 chunks +28 lines, -22 lines 0 comments Download
M Source/core/rendering/compositing/CompositingTriggers.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
ojan
6 years, 8 months ago (2014-04-10 19:53:59 UTC) #1
ojan
Actually, don't review this yet. I'm going to fix the settings thing properly in another ...
6 years, 8 months ago (2014-04-10 22:03:31 UTC) #2
ojan
OK. This is ready for review now.
6 years, 8 months ago (2014-04-12 00:31:08 UTC) #3
abarth-chromium
lgtm https://codereview.chromium.org/231613002/diff/100001/Source/core/rendering/compositing/CompositingReasonFinder.h File Source/core/rendering/compositing/CompositingReasonFinder.h (right): https://codereview.chromium.org/231613002/diff/100001/Source/core/rendering/compositing/CompositingReasonFinder.h#newcode37 Source/core/rendering/compositing/CompositingReasonFinder.h:37: bool requiresCompositingForPositionFixed(RenderObject*, const RenderLayer*, RenderLayer::ViewportConstrainedNotCompositedReason*, bool* needToRecomputeCompositingRequirements) const; ...
6 years, 8 months ago (2014-04-12 01:17:56 UTC) #4
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 8 months ago (2014-04-14 17:23:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/231613002/120001
6 years, 8 months ago (2014-04-14 17:24:06 UTC) #6
commit-bot: I haz the power
Change committed as 171504
6 years, 8 months ago (2014-04-14 19:06:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/231613002/120001
6 years, 8 months ago (2014-04-14 19:06:34 UTC) #8
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/Settings.in: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-14 19:06:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/231613002/120001
6 years, 8 months ago (2014-04-14 19:06:57 UTC) #10
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 19:07:27 UTC) #11
Message was sent while issue was closed.
Failed to apply patch for Source/core/frame/Settings.in:
While running patch -p1 --forward --force --no-backup-if-mismatch;
  patching file Source/core/frame/Settings.in
  Hunk #1 FAILED at 102.
  1 out of 1 hunk FAILED -- saving rejects to file
Source/core/frame/Settings.in.rej

Patch:       Source/core/frame/Settings.in
Index: Source/core/frame/Settings.in
diff --git a/Source/core/frame/Settings.in b/Source/core/frame/Settings.in
index
7f9a609a76e897b639ce1dc575ef11360a7c8387..127a24e8ca1f40002a2421ad0d836a2538c49f86
100644
--- a/Source/core/frame/Settings.in
+++ b/Source/core/frame/Settings.in
@@ -102,7 +102,7 @@ acceleratedCompositingForPluginsEnabled initial=true,
invalidate=AcceleratedComp
 acceleratedCompositingForCanvasEnabled initial=true,
invalidate=AcceleratedCompositing
 acceleratedCompositingForAnimationEnabled initial=true,
invalidate=AcceleratedCompositing
 acceleratedCompositingForFiltersEnabled initial=false,
invalidate=AcceleratedCompositing
-acceleratedCompositingForFixedPositionEnabled initial=false
+acceleratedCompositingForFixedPositionEnabled initial=false,
invalidate=AcceleratedCompositing
 acceleratedCompositingForOverflowScrollEnabled initial=false,
invalidate=AcceleratedCompositing
 acceleratedCompositingForFixedRootBackgroundEnabled initial=false
 acceleratedCompositingForGpuRasterizationHintEnabled initial=false,
invalidate=AcceleratedCompositing

Powered by Google App Engine
This is Rietveld 408576698