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

Issue 1211573003: Fill out some more documentation about building RenderBox subclasses. (Closed)

Created:
5 years, 6 months ago by Hixie
Modified:
5 years, 6 months ago
CC:
abarth-chromium, gregsimon, jackson_old, 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

Fill out some more documentation about building RenderBox subclasses. TBR=collin,hansmuller Committed: https://chromium.googlesource.com/external/mojo/+/71f0ecc7a2a2fc3d8c2ed6adcda17e05300f6439

Patch Set 1 #

Total comments: 30

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -33 lines) Patch
M sky/sdk/lib/base/README.md View 1 1 chunk +38 lines, -0 lines 0 comments Download
M sky/sdk/lib/base/node.dart View 1 1 chunk +1 line, -27 lines 0 comments Download
M sky/sdk/lib/rendering/README.md View 1 2 2 chunks +218 lines, -1 line 4 comments Download
M sky/sdk/lib/rendering/block.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M sky/sdk/lib/rendering/box.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M sky/sdk/lib/rendering/object.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/stack.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M sky/specs/style-guide.md View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
hansmuller
My notes about whatever puzzled me. https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/README.md File sky/sdk/lib/rendering/README.md (right): https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/README.md#newcode126 sky/sdk/lib/rendering/README.md:126: * If its ...
5 years, 6 months ago (2015-06-24 19:53:31 UTC) #2
hansmuller
https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/block.dart File sky/sdk/lib/rendering/block.dart (right): https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/block.dart#newcode22 sky/sdk/lib/rendering/block.dart:22: for (RenderBox child in children) Maybe just define addAll(children) ...
5 years, 6 months ago (2015-06-24 20:30:14 UTC) #3
hansmuller
https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/block.dart File sky/sdk/lib/rendering/block.dart (right): https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/block.dart#newcode26 sky/sdk/lib/rendering/block.dart:26: void setParentData(RenderBox child) { Could setParentData() be defined in ...
5 years, 6 months ago (2015-06-24 20:32:50 UTC) #4
Hixie
https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/README.md File sky/sdk/lib/rendering/README.md (right): https://codereview.chromium.org/1211573003/diff/1/sky/sdk/lib/rendering/README.md#newcode126 sky/sdk/lib/rendering/README.md:126: * If its constructor takes any nodes to be ...
5 years, 6 months ago (2015-06-25 19:15:32 UTC) #5
Hixie
Committed patchset #3 (id:40001) manually as 71f0ecc7a2a2fc3d8c2ed6adcda17e05300f6439 (presubmit successful).
5 years, 6 months ago (2015-06-25 19:25:48 UTC) #6
abarth-chromium
https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/README.md File sky/sdk/lib/rendering/README.md (right): https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/README.md#newcode140 sky/sdk/lib/rendering/README.md:140: system, then you have to inherit straight from `RenderObject`. ...
5 years, 6 months ago (2015-06-25 19:41:06 UTC) #8
Hixie
5 years, 6 months ago (2015-06-25 22:47:56 UTC) #9
Message was sent while issue was closed.
On 2015/06/25 at 19:41:06, abarth wrote:
>
https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/R...
> File sky/sdk/lib/rendering/README.md (right):
> 
>
https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/R...
> sky/sdk/lib/rendering/README.md:140: system, then you have to inherit straight
from `RenderObject`.
> s/have to inherit straight/should inherit directly/
> 
> In theory, you could imagine another class in between that did something else
useful, hence "should" rather than "have to".

Done.


>
https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/R...
> sky/sdk/lib/rendering/README.md:143:
example](../../../examples/rendering/sector_layout.dart), which
> We should move the examples into the sdk directory (apparently they're
supposed to be in a directory named |example| rather than |examples|). 
Otherwise links like this will break when deployed to sky_sdk.

Filed https://github.com/domokit/mojo/issues/277


>
https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/R...
> sky/sdk/lib/rendering/README.md:162: subclass must implement operator== (and
hashCode).
> `operator==` and `hashCode` because these are code terms.

Done.


>
https://codereview.chromium.org/1211573003/diff/40001/sky/sdk/lib/rendering/R...
> sky/sdk/lib/rendering/README.md:255: re-laid-out.
> I wonder if we should remove this concept until we have data that it matters
for performance.

Added to my stack. Blocked on 
https://codereview.chromium.org/1213473003

Powered by Google App Engine
This is Rietveld 408576698