mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #13723 - Manishearth:resync, r=bholley
Regen bindings, warning fix The warning only happens on the latest stable (which we use in the incubator), so there's an `#[allow()]` there for now as well. Don't signal r+ to bors, I'll do that myself when the incubator side lands. r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13723) <!-- Reviewable:end -->
This commit is contained in:
commit
d9bb663421
4 changed files with 626 additions and 730 deletions
|
@ -1984,11 +1984,14 @@ clip-path
|
|||
|
||||
${impl_coord_copy('column_width', 'mColumnWidth')}
|
||||
|
||||
#[allow(unused_unsafe)]
|
||||
pub fn set_column_count(&mut self, v: longhands::column_count::computed_value::T) {
|
||||
use gecko_bindings::structs::{NS_STYLE_COLUMN_COUNT_AUTO, nsStyleColumn_kMaxColumnCount};
|
||||
|
||||
self.gecko.mColumnCount = match v.0 {
|
||||
Some(number) => cmp::min(number, nsStyleColumn_kMaxColumnCount),
|
||||
Some(number) => unsafe {
|
||||
cmp::min(number, nsStyleColumn_kMaxColumnCount)
|
||||
},
|
||||
None => NS_STYLE_COLUMN_COUNT_AUTO
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue