Skip to content

Be consistent about where ToComputedValue implementations live. #19670

Open

Description

@emilio

Right now:

$ cd components/style/values/specified
$ git grep 'impl ToComputedValue' | wc -l
33
$ ../computed
$ git grep 'impl ToComputedValue' | wc -l
14

So that's... not very consistent.

Activity

  1. added
    A-content/css
    on Jan 1, 2018
  2. emilio commented on Jan 1, 2018

    @emilio
    MemberAuthor

    We should decide whether they should live in computed or specified. I don't have a particularly strong preference, and the only argument I've heard (from @mauricioc and @nox IIRC) is that ideally specified modules shouldn't depend on computed ones, and making complex cases depend on that makes the code intrincate.

    I think that's a valid point, so lacking other arguments I'd be fine moving all them to computed. But I bet there can be other arguments in the other direction, so given this isn't particularly urgent we can wait and discuss for as long as needed :)

  3. CYBAI commented on Jan 2, 2018

    @CYBAI
    Member

    IMO, I'll vote for impl ToComputedValue inside specified modules because I think it's reasonable to make associated types of impl ToComputedValue with its computed module.
    We can see that we'd like to implement ToComputedValue trait and make its associated type with its own computed module.

    I'm also fine for moving all of them in specified modules but just share my opinion.

  4. nox commented on Jan 2, 2018

    @nox
    Contributor

    IIRC, I prefer to put them in specified, but I don't remember it well and I'm still on holidays. We can discuss about that next Monday.

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

    A-content/css

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions