Skip to content

Assorted cleanups in gfx and layout - #2682

Merged
larsbergstrom merged 6 commits into
servo:masterfrom
brendanzab:assorted-cleanups
Jun 21, 2014
Merged

larsbergstrom merged 6 commits into
servo:masterfrom
brendanzab:assorted-cleanups

Conversation

@brendanzab

Copy link
Copy Markdown
Contributor

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/1859

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!
  • @bjz, please confirm that src/test/html/acid1.html and your favourite wikipedia page still render correctly!

Comment thread src/components/main/layout/inline.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to:

let is_whitespace_only = fragment.is_whitespace_only();
if is_whitespace_only {
    ...debug...
}
is_whitespace_only

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that is nicer. Should I rebase, or will that mess things up?

@pcwalton

Copy link
Copy Markdown
Contributor

Looks fine modulo one nit. r=me

@brendanzab

Copy link
Copy Markdown
Contributor Author

@pcwalton cleanup done!

larsbergstrom added a commit that referenced this pull request Jun 21, 2014
Assorted cleanups in gfx and layout
@larsbergstrom
larsbergstrom merged commit 7df50ae into servo:master Jun 21, 2014
@brendanzab
brendanzab deleted the assorted-cleanups branch June 21, 2014 20:39
jschwe added a commit to jschwe/servo that referenced this pull request Jun 17, 2024
* Don't prefix PATH with android toolchain:
  This is problematic, since it can cause Rust to select
  the NDK toolchain as a linker when compiling for the
  HOST target (e.g. compiling build-scripts).
* Prefix target compiler and compiler flags variables
  with `TARGET_` so as not to influence compilation
  for HOST targets.
 * SET `CLANG_PATH` to avoid [bindgen servo#2682]

 [bindgen servo#2682]: rust-lang/rust-bindgen#2682

Signed-off-by: Jonathan Schwender <[email protected]>
jschwe added a commit to jschwe/servo that referenced this pull request Jun 17, 2024
* Postfix PATH with android toolchain:
  We only need to edit path for the linker specified
  in the `.cargo/config.toml` to be found. Adding the
  NDK clang to the end of PATH is sufficient for that.
  Adding the NDK clang to the front can cause problems
  however, since it causes the NDK `clang` to be
  preferred over the system clang. This can cause
  problems on some systems, where compiling
  e.g. buildscripts for HOST subsequently fails.
* Prefix target compiler and compiler flags variables
  with `TARGET_` so as not to influence compilation
  for HOST targets.
 * SET `CLANG_PATH` to avoid [bindgen servo#2682]

 [bindgen servo#2682]: rust-lang/rust-bindgen#2682

Signed-off-by: Jonathan Schwender <[email protected]>
jschwe added a commit to jschwe/servo that referenced this pull request Jun 17, 2024
* Postfix PATH with android toolchain:
  We only need to edit path for the linker specified
  in the `.cargo/config.toml` to be found. Adding the
  NDK clang to the end of PATH is sufficient for that.
  Adding the NDK clang to the front can cause problems
  however, since it causes the NDK `clang` to be
  preferred over the system clang. This can cause
  problems on some systems, where compiling
  e.g. buildscripts for HOST subsequently fails.
* Prefix target compiler and compiler flags variables
  with `TARGET_` so as not to influence compilation
  for HOST targets.
 * SET `CLANG_PATH` to avoid [bindgen servo#2682]

 [bindgen servo#2682]: rust-lang/rust-bindgen#2682

Signed-off-by: Jonathan Schwender <[email protected]>
github-merge-queue Bot pushed a commit that referenced this pull request Jun 18, 2024
* Postfix PATH with android toolchain:
  We only need to edit path for the linker specified
  in the `.cargo/config.toml` to be found. Adding the
  NDK clang to the end of PATH is sufficient for that.
  Adding the NDK clang to the front can cause problems
  however, since it causes the NDK `clang` to be
  preferred over the system clang. This can cause
  problems on some systems, where compiling
  e.g. buildscripts for HOST subsequently fails.
* Prefix target compiler and compiler flags variables
  with `TARGET_` so as not to influence compilation
  for HOST targets.
 * SET `CLANG_PATH` to avoid [bindgen #2682]

 [bindgen #2682]: rust-lang/rust-bindgen#2682

Signed-off-by: Jonathan Schwender <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants