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

Issue 2743453002: Combine 2 exclusions in Layout Opportunity Tree if they shadow each other (Closed)

Created:
3 years, 9 months ago by Gleb Lanbin
Modified:
3 years, 9 months ago
Reviewers:
cbiesinger, ikilpatrick
CC:
chromium-reviews, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, dgrogan+ng_chromium.org, atotic+reviews_chromium.org, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, zoltan1, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Combine 2 exclusions in Layout Opportunity Tree if they shadow each other Note: The original patch was reviewed and submitted in https://codereview.chromium.org/2733133002/ The only difference with the original patch is that NGExclusion::MaybeCombineWith doesn't have NOTREACHED anymore. That's because some tests and text exclusions don't have exclusion.type set. We just return false in this case. This patch introduces the logic that tries to combine 2 exclusions if possible. We can combine 2 exclusions if - they are adjoining to each other and have the same exclusion type - the new exclusion shadows the old one. That's because it's not allowed to position anything in the shadowed area. Example: <div id="SS" style="float: left; height: 10px; width: 10px"></div> <div id="BB" style="float: left; height: 20px; width: 20px"></div> +----------------+ |SSBB |**BB We combine SS and BB exclusions including the shadowed area (**). BUG=635619, 699703 TESTS=TwoRightExclusionsShadowEachOther, TwoLeftExclusionsShadowEachOther Review-Url: https://codereview.chromium.org/2743453002 Cr-Commit-Position: refs/heads/master@{#455876} Committed: https://chromium.googlesource.com/chromium/src/+/875a510c97b3108d5ca70c7878c9a3a3d3830fd0

Patch Set 1 #

Messages

Total messages: 15 (10 generated)
Gleb Lanbin
3 years, 9 months ago (2017-03-08 21:59:17 UTC) #2
ikilpatrick
lgtm
3 years, 9 months ago (2017-03-09 21:51:19 UTC) #9
cbiesinger
lgtm
3 years, 9 months ago (2017-03-09 21:55:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2743453002/1
3 years, 9 months ago (2017-03-09 21:57:19 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 22:05:02 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/875a510c97b3108d5ca70c7878c9...

Powered by Google App Engine
This is Rietveld 408576698