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

Issue 1070133002: Only allow change-of-basis between transform nodes on the same ancestor chain (Closed)

Created:
5 years, 8 months ago by jaydasika
Modified:
4 years, 4 months ago
Reviewers:
Ian Vollick, ajuma
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, cc-bugs_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only allow change-of-basis between transform nodes on the same ancestor chain This removes the code that allowed computing a change-of-basis transform between nodes that don't lie on the same ancestor change, and adds DCHECKs to ensure that ComputeTransform isn't called with such nodes. BUG=474324 TEST=no new crash caused by NOTREACHED added in the code while running the layout tests and telemetry tests. Committed: https://crrev.com/64948a91c39e8c5084b2389e3c6b641e2cb18603 Cr-Commit-Position: refs/heads/master@{#324492}

Patch Set 1 #

Patch Set 2 : removed the changes made to the code for testing #

Total comments: 6

Patch Set 3 : DCHECK added #

Total comments: 2

Patch Set 4 : 2nd DCHECK added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -125 lines) Patch
M cc/trees/property_tree.h View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 2 chunks +5 lines, -34 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 chunk +0 lines, -88 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
jaydasika
5 years, 8 months ago (2015-04-09 14:26:14 UTC) #2
ajuma
This looks good. I think the IsDescendant checks can be turned into DCHECKS too (see ...
5 years, 8 months ago (2015-04-09 14:43:09 UTC) #3
jaydasika
https://codereview.chromium.org/1070133002/diff/20001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (left): https://codereview.chromium.org/1070133002/diff/20001/cc/trees/property_tree.cc#oldcode64 cc/trees/property_tree.cc:64: On 2015/04/09 14:43:09, ajuma wrote: > Nit: this whitespace ...
5 years, 8 months ago (2015-04-09 15:24:29 UTC) #4
ajuma
https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc#newcode68 cc/trees/property_tree.cc:68: if (source_id > dest_id && IsDescendant(source_id, dest_id)) This IsDescendant ...
5 years, 8 months ago (2015-04-09 15:27:24 UTC) #5
jaydasika
https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc#newcode68 cc/trees/property_tree.cc:68: if (source_id > dest_id && IsDescendant(source_id, dest_id)) On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 15:38:31 UTC) #6
ajuma
On 2015/04/09 15:38:31, jaydasika wrote: > https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc > File cc/trees/property_tree.cc (right): > > https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc#newcode68 > ...
5 years, 8 months ago (2015-04-09 15:40:07 UTC) #7
jaydasika
On 2015/04/09 15:40:07, ajuma wrote: > On 2015/04/09 15:38:31, jaydasika wrote: > > > https://codereview.chromium.org/1070133002/diff/40001/cc/trees/property_tree.cc ...
5 years, 8 months ago (2015-04-09 15:44:12 UTC) #8
ajuma
lgtm
5 years, 8 months ago (2015-04-09 15:44:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1070133002/60001
5 years, 8 months ago (2015-04-09 18:22:34 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-09 19:57:06 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 19:58:02 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/64948a91c39e8c5084b2389e3c6b641e2cb18603
Cr-Commit-Position: refs/heads/master@{#324492}

Powered by Google App Engine
This is Rietveld 408576698