mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Auto merge of #19412 - CYBAI:grid-template-areas-out-of-mako, r=emilio
style: Move grid-template-areas outside of mako This is a sub-PR of #19015 r? emilio --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #19409 - [x] These changes do not require tests <!-- 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/19412) <!-- Reviewable:end -->
This commit is contained in:
commit
fa3f3896d3
7 changed files with 195 additions and 185 deletions
|
@ -2252,7 +2252,7 @@ fn static_assert() {
|
|||
|
||||
${impl_simple_type_with_conversion("grid_auto_flow")}
|
||||
|
||||
pub fn set_grid_template_areas(&mut self, v: longhands::grid_template_areas::computed_value::T) {
|
||||
pub fn set_grid_template_areas(&mut self, v: values::computed::position::GridTemplateAreas) {
|
||||
use gecko_bindings::bindings::Gecko_NewGridTemplateAreasValue;
|
||||
use gecko_bindings::sugar::refptr::UniqueRefPtr;
|
||||
|
||||
|
@ -2292,10 +2292,10 @@ fn static_assert() {
|
|||
self.copy_grid_template_areas_from(other)
|
||||
}
|
||||
|
||||
pub fn clone_grid_template_areas(&self) -> longhands::grid_template_areas::computed_value::T {
|
||||
use properties::longhands::grid_template_areas::{NamedArea, TemplateAreas};
|
||||
pub fn clone_grid_template_areas(&self) -> values::computed::position::GridTemplateAreas {
|
||||
use std::ops::Range;
|
||||
use values::None_;
|
||||
use values::specified::position::{NamedArea, TemplateAreas};
|
||||
|
||||
if self.gecko.mGridTemplateAreas.mRawPtr.is_null() {
|
||||
return Either::Second(None_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue