mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Layout: Remove redundant deny unsafe and format
Add license to two files. Bypass DisplayListBuilder for some items.
This commit is contained in:
parent
2ff330a5c9
commit
d9b1950d74
21 changed files with 62 additions and 89 deletions
|
@ -2,8 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
// FIXME(rust-lang/rust#26264): Remove GenericBackgroundSize.
|
||||
|
||||
use app_units::Au;
|
||||
|
@ -120,6 +118,7 @@ fn compute_background_image_size(
|
|||
}
|
||||
}
|
||||
|
||||
/// Compute a rounded clip rect for the background.
|
||||
pub fn clip(
|
||||
bg_clip: BackgroundClip,
|
||||
absolute_bounds: Rect<Au>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue