Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcompositing/script: Do not dispatch the resize event when initially l… #10654
Conversation
highfive
commented
Apr 16, 2016
|
Heads up! This PR modifies the following files:
|
|
Do you have a spec to back this up? |
|
I don't think we need a spec cite for this, because it makes us stop doing something that the spec does not require us to do and that is nonsensical to begin with. (That is, this essentially corrects a pre-existing spec violation.) |
|
You're only supposed to fire the event if the window size has changed since the last time the run the resize steps algorithm has been run. This is clearly false the first time the algorithm runs; it has not changed because it did not exist at all. |
|
compositing changes look fine to me. |
|
Is there something wrong with the script part? |
|
A probably dumb question... why have the compositor send a window size message with type Review status: 0 of 8 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
|
The compositor knows how the message is supposed to be treated; it would be bad if the script were silently out of sync with that expectation. I admit it's just a heuristic "explicit is better than implicit" choice. I can change it, if you would prefer it the other way. Comments from Reviewable |
|
It's just a question of who keeps track of that bit of state -- the compositor (as you have it) or script (by keeping track of an optional size). Personally I prefer the latter, but this is just taste. @notriddle would you like me to finish doing the code review? |
|
|
|
I'd say yeah, finish the code review. |
|
OK, looks good. If we're going to go with the compositor rather than script deciding which is the initial size, then this seems a good implementation. r=me if so. Reviewed 1 of 8 files at r1, 1 of 1 files at r2, 5 of 6 files at r3. Comments from Reviewable |
|
Reviewed 1 of 6 files at r3. Comments from Reviewable |
|
Still awaiting answer? |
|
@bors-servo r+ |
|
|
compositing/script: Do not dispatch the resize event when initially l… …oading. No bug report corresponds to this, but I noticed it while trying to reduce #10593 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10654) <!-- Reviewable:end -->
|
|
|
@bors-servo try |
compositing/script: Do not dispatch the resize event when initially l… …oading. No bug report corresponds to this, but I noticed it while trying to reduce #10593 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10654) <!-- Reviewable:end -->
|
|
|
Pinging @asajeffrey |
|
Oops. Minor nit below. Reviewed 3 of 3 files at r4, 2 of 2 files at r5. components/script/script_thread.rs, line 1032 [r5] (raw file): Comments from Reviewable |
|
components/script/script_thread.rs, line 1032 [r5] (raw file): Comments from Reviewable |
|
components/script/script_thread.rs, line 1032 [r5] (raw file): Comments from Reviewable |
|
@bors-servo r+ Reviewed 5 of 5 files at r6. Comments from Reviewable |
|
|
compositing/script: Do not dispatch the resize event when initially l… …oading. No bug report corresponds to this, but I noticed it while trying to reduce #10593 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10654) <!-- Reviewable:end -->
|
|
notriddle commentedApr 16, 2016
…oading.
No bug report corresponds to this, but I noticed it while trying to
reduce #10593
This change is