Skip to content

Move counter-reset outside of mako #19387

Closed

Description

@DonatJR

Part of #19015. I'd like to work on the -counter-reset longhand.

This one lives in components/style/properties/longhand/counter.mako.rs.

Activity

  1. changed the title [-]Move -counter-rest outside of mako[/-] [+]Move -counter-reset outside of mako[/+] on Nov 26, 2017
  2. changed the title [-]Move -counter-reset outside of mako[/-] [+]Move counter-reset outside of mako[/+] on Nov 26, 2017
  3. DonatJR commented on Dec 8, 2017

    @DonatJR
    ContributorAuthor

    @emilio I moved the code for counter-reset out of the mako file, but the CounterReset struct has a cfg attribute #[cfg_attr(feature = "gecko", derive(MallocSizeOf))] and building the geckolib throws some mismatched type errors.
    I noticed there is a gecko.mako.rs file as well which still uses the old struct generated by mako (counter-increment and counter-reset shared the SpecifiedValue / ComputedValue struct, which is why the struct can still be found there). Do I need to move the code in gecko.mako.rs as well and if so, where should I put it?

  4. emilio commented on Dec 8, 2017

    @emilio
    Member

    No, the code in gecko.mako.rs should stay. Mind opening a PR (maybe with "WIP" in the title) so I can take a look? Thanks!

  5. DonatJR commented on Dec 8, 2017

    @DonatJR
    ContributorAuthor

    Opened a WIP PR: #19529 :)

  6. added a commit that references this issue on Feb 1, 2018
    38ef515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions