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

Issue 1093633002: Layout API prototype, for discussion (Closed)

Created:
5 years, 8 months ago by Hixie
Modified:
5 years, 7 months ago
Reviewers:
abarth-chromium
CC:
abarth-chromium, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : add padding to the Block layout algorithm #

Patch Set 3 : don't bother updating the layout of, or repainting, detached nodes #

Patch Set 4 : Support getting multiple targets in hit testing #

Patch Set 5 : Factor out the child logic from BlockBox; introduce ParagraphBox placeholder #

Patch Set 6 : Scaffold layout manager (sample layout manager to show one that doesn't have a child list) #

Patch Set 7 : Make sure the Screen has a paint() function, otherwise nothing would paint! #

Patch Set 8 : I had the operator== implementation backwards #

Patch Set 9 : Abstract out some logic from RenderNode since it's not really RenderNode-specific, it could be used… #

Total comments: 8

Patch Set 10 : remove some casting for clarity #

Total comments: 2

Patch Set 11 : Merge with upstream, and adjust how hit testing works #

Patch Set 12 : Updates the paint side of things #

Patch Set 13 : add 'parent' to Node (cherry-picks https://codereview.chromium.org/1134593007) #

Patch Set 14 : Make the layout mechanism use the 'parent' pointer to dirty just the part of the subtree that needs… #

Patch Set 15 : Make the paint logic have a bit that decides if we're creating a paint node or not #

Patch Set 16 : Rename layout.dart to layout2.dart so that we can have both side by side for a while. #

Patch Set 17 : Rename Node to AbstractNode, and make it not inherit from NativeFieldWrapperClass2 (we'll have the … #

Patch Set 18 : Fix some minor Dart typos #

Patch Set 19 : convert this to using the existing new paint API rather than the paint.dart API #

Patch Set 20 : git cl land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+766 lines, -7 lines) Patch
M sky/sdk/lib/framework/layout.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -1 line 0 comments Download
A sky/sdk/lib/framework/layout2.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +757 lines, -0 lines 0 comments Download
M sky/sdk/lib/framework/node.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
ojan
Still trying to wrap my head around the relayoutSubtreeRoot thing. Other than that...I think I ...
5 years, 8 months ago (2015-04-23 20:28:32 UTC) #2
Hixie
https://codereview.chromium.org/1093633002/diff/160001/sky/framework/layout.dart File sky/framework/layout.dart (right): https://codereview.chromium.org/1093633002/diff/160001/sky/framework/layout.dart#newcode35 sky/framework/layout.dart:35: _children.add(child); On 2015/04/23 20:28:32, ojan wrote: > Why add ...
5 years, 8 months ago (2015-04-23 20:45:13 UTC) #3
ojan
https://codereview.chromium.org/1093633002/diff/160001/sky/framework/layout.dart File sky/framework/layout.dart (right): https://codereview.chromium.org/1093633002/diff/160001/sky/framework/layout.dart#newcode35 sky/framework/layout.dart:35: _children.add(child); On 2015/04/23 at 20:45:13, Hixie wrote: > On ...
5 years, 8 months ago (2015-04-23 21:12:36 UTC) #4
ojan
https://codereview.chromium.org/1093633002/diff/180001/sky/framework/layout.dart File sky/framework/layout.dart (right): https://codereview.chromium.org/1093633002/diff/180001/sky/framework/layout.dart#newcode123 sky/framework/layout.dart:123: relayout(); I was talking Elliott through this design and ...
5 years, 7 months ago (2015-05-09 01:23:34 UTC) #5
Hixie
https://codereview.chromium.org/1093633002/diff/180001/sky/framework/layout.dart File sky/framework/layout.dart (right): https://codereview.chromium.org/1093633002/diff/180001/sky/framework/layout.dart#newcode123 sky/framework/layout.dart:123: relayout(); On 2015/05/09 01:23:34, ojan wrote: > I was ...
5 years, 7 months ago (2015-05-13 20:29:21 UTC) #6
ojan
On 2015/05/13 at 20:29:21, ianh wrote: > https://codereview.chromium.org/1093633002/diff/180001/sky/framework/layout.dart > File sky/framework/layout.dart (right): > > https://codereview.chromium.org/1093633002/diff/180001/sky/framework/layout.dart#newcode123 ...
5 years, 7 months ago (2015-05-17 00:56:00 UTC) #7
Hixie
That sounds too expensive, yeah. Also it doesn't really efficiently handle the case of two ...
5 years, 7 months ago (2015-05-18 18:04:03 UTC) #8
Hixie
I've added parent.
5 years, 7 months ago (2015-05-19 20:26:38 UTC) #9
abarth-chromium
LGTM Maybe don't land paint.dart yet?
5 years, 7 months ago (2015-05-20 17:51:32 UTC) #11
Hixie
Committed patchset #20 (id:380001) manually as 56b8b21d1552dc4cc45b0e05ea3d519afa7246a7 (presubmit successful).
5 years, 7 months ago (2015-05-20 17:52:39 UTC) #12
Hixie
5 years, 7 months ago (2015-05-20 18:14:35 UTC) #13
Message was sent while issue was closed.
Moved the paint part to https://codereview.chromium.org/1143053003 for now.

Powered by Google App Engine
This is Rietveld 408576698