Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSplit length values into their own file #13584
Closed
Comments
|
Please make a comment here if you intend to work on this issue. Thank you! |
|
I'll take this up! |
|
@shubheksha Is this still being worked on? |
|
Unassigning due to lack of activity. |
|
I'll do this now. :) |
|
Curious if it makes sense to move (Likewise for |
bors-servo
added a commit
that referenced
this issue
Nov 5, 2016
Refactor style lengths per #13584 <!-- Please describe your changes on the following line: --> Refactor `components/style/values/{computed,specified}/mod.rs` into `…/length.rs` per #13584. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13584 <!-- Either: --> - [x] These changes do not require tests because the existing code should be covered by tests <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14077) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Nov 6, 2016
Refactor style lengths per #13584 <!-- Please describe your changes on the following line: --> Refactor `components/style/values/{computed,specified}/mod.rs` into `…/length.rs` per #13584. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13584 <!-- Either: --> - [x] These changes do not require tests because the existing code should be covered by tests <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14077) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
components/style/values/computed/mod.rsandcomponents/style/values/specified/mod.rsare huge. Those modules have submodules (positionandbasic_shape) for groups of CSS values related to particular properties, and we should add more.A lot of the length-related stuff could be moved into a new module
lengthinvalues/specified/length.rs(same for computed). Lengths are imported everywhere (and it's convenient to import directly fromstyle::values, so we should reexport the moved types inmod.rs(viapub use length::SomeType).The types that this would include would basically be anything in those files with
Length,Calc, orPercentagein its name, as well asCharacterWidth. Theimpls related to those would need to be moved too.