Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant code in whitespace stripping #11039

Merged
merged 1 commit into from May 7, 2016

Conversation

@mbrubeck
Copy link
Contributor

mbrubeck commented May 5, 2016

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size. But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton


This change is Reviewable

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then
recalculates the fragment's inline size.  But this isn't necessary because
strip_trailing_whitespace_if_necessary already recalculates the size.
@highfive
Copy link

highfive commented May 5, 2016

warning Warning warning

  • These commits modify layout code, but no tests are modified.Please consider adding a test!
@pcwalton
Copy link
Contributor

pcwalton commented May 6, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

📌 Commit 887f0e6 has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

Testing commit 887f0e6 with merge 0f3253a...

bors-servo added a commit that referenced this pull request May 6, 2016
Remove redundant code in whitespace stripping

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size.  But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton

<!-- 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/11039)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

💔 Test failed - mac-dev-unit

@jdm
Copy link
Member

jdm commented May 6, 2016

@jdm
Copy link
Member

jdm commented May 6, 2016

@bors-servo: r-
Travis and appveyor both show build errors.

@mbrubeck
Copy link
Contributor Author

mbrubeck commented May 6, 2016

@bors-servo r=pcwalton

  • Build error fixed by app_units upgrade in #11034. (Forgot I had the fix in a Cargo override.)
@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

📌 Commit 887f0e6 has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

Testing commit 887f0e6 with merge a84e639...

bors-servo added a commit that referenced this pull request May 6, 2016
Remove redundant code in whitespace stripping

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size.  But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton

<!-- 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/11039)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

💔 Test failed - windows

@mbrubeck
Copy link
Contributor Author

mbrubeck commented May 6, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

Testing commit 887f0e6 with merge e091841...

bors-servo added a commit that referenced this pull request May 6, 2016
Remove redundant code in whitespace stripping

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size.  But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton

<!-- 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/11039)
<!-- Reviewable:end -->
@highfive highfive removed the S-tests-failed label May 6, 2016
@bors-servo
Copy link
Contributor

bors-servo commented May 6, 2016

💔 Test failed - windows

@larsbergstrom
Copy link
Contributor

larsbergstrom commented May 6, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 7, 2016

Testing commit 887f0e6 with merge 8dbc0ea...

bors-servo added a commit that referenced this pull request May 7, 2016
Remove redundant code in whitespace stripping

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size.  But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton

<!-- 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/11039)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 7, 2016

💔 Test failed - mac-rel-css

@highfive
Copy link

highfive commented May 7, 2016

  ▶ CRASH [expected PASS] /css21_dev/html4/padding-top-013.htm
  │ 
  │ Shutting down the Constellation after generating an output file or exit flag specified
  │ thread &#39;ScriptThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }&#39; panicked at &#39;called `Option::unwrap()` on a `None` value&#39;, ../src/libcore/option.rs:325
  │ stack backtrace:
  │    1:        0x104b69d18 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x104b6fff5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x104b6fc0e - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x1042c5242 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::heda6930908f06acc
  │    5:        0x104b574e8 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x104b58e1e - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x104b68fe7 - rust_begin_unwind
  │    8:        0x104b97db0 - core::panicking::panic_fmt::h257ceb0aa351d801
  │    9:        0x104b980ac - core::panicking::panic::h4bb1497076d04ab9
  │   10:        0x103c95b70 - script::page::Page::window::h010a05681584eec2
  │   11:        0x103b38fcc - std::sys_common::unwind::try::try_fn::hd12b2d76c81a0e30
  │   12:        0x104b68f7b - __rust_try
  │   13:        0x104b68f03 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x103b392ca - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::he24f36d07ed1c7fd
  │   15:        0x104b6f078 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8c3c2059 - _pthread_body
  │   17:     0x7fff8c3c1fd6 - _pthread_start
  └ thread panicked while panicking. aborting.
@jdm
Copy link
Member

jdm commented May 7, 2016

@bors-srrvo retry
#11059

@jdm
Copy link
Member

jdm commented May 7, 2016

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented May 7, 2016

Testing commit 887f0e6 with merge f80641e...

bors-servo added a commit that referenced this pull request May 7, 2016
Remove redundant code in whitespace stripping

LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size.  But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton

<!-- 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/11039)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 7, 2016

@bors-servo bors-servo merged commit 887f0e6 into servo:master May 7, 2016
1 of 3 checks passed
1 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build failed
Details
homu Test successful
Details
@mbrubeck mbrubeck deleted the mbrubeck:strip-trailing branch May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.