Closed Bug 1449806 Opened 8 years ago Closed 7 years ago

Remove GenericSpecifiedValues

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox61 --- wontfix
firefox62 --- wontfix
firefox63 --- fixed

People

(Reporter: xidorn, Assigned: emilio)

References

Details

Attachments

(10 files)

After the old style system got removed, we can replace GenericSpecifiedValues with just ServoSpecifiedValues everywhere.
Priority: -- → P3
Assignee: nobody → emilio
Comment on attachment 8987131 [details] Bug 1449806: Introduce MappedDeclarations. https://reviewboard.mozilla.org/r/252354/#review259058 ::: layout/style/MappedDeclarations.h:23 (Diff revision 1) > +// This provides a common interface for attribute mappers > +// (MapAttributesIntoRule) to use regardless of the style backend. If the style > +// backend is Gecko, this will contain an nsRuleData. If it is Servo, it will be > +// a PropertyDeclarationBlock. This comment should be updated, I guess. The old style system is no longer relevant. ::: layout/style/MappedDeclarations.h:43 (Diff revision 1) > + return mDocument; > + } > + > + already_AddRefed<RawServoDeclarationBlock> TakeDeclarationBlock() > + { > + return mDecl.forget(); Maybe add an assertion here that mDecl isn't double taken, and another assertion in destructor that mDecl has been taken. ::: layout/style/MappedDeclarations.h:210 (Diff revision 1) > + RefPtr<RawServoDeclarationBlock> mDecl; > +}; > + > +} // namespace mozilla > + > +#endif // mozilla_MappedDeclarations_h ::: layout/style/MappedDeclarations.cpp:7 (Diff revision 1) > +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ > +/* This Source Code Form is subject to the terms of the Mozilla Public > + * License, v. 2.0. If a copy of the MPL was not distributed with this > + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > + > +#include "MappedDeclarations.h" `"mozilla/MappedDeclarations.h"` Although they probably don't have difference effectively but it's probably better to keep consistency. ::: layout/style/MappedDeclarations.cpp:41 (Diff revision 1) > + aValue.ToString(str); > + Servo_DeclarationBlock_SetBackgroundImage( > + mDecl, str, mDocument->DefaultStyleAttrURLData()); > +} > + > + I don't think we need two empty lines here.
Attachment #8987131 - Flags: review?(xidorn+moz) → review+
Attachment #8987132 - Flags: review?(xidorn+moz) → review+
Attachment #8987133 - Flags: review?(xidorn+moz) → review+
Attachment #8987134 - Flags: review?(xidorn+moz) → review+
Attachment #8987135 - Flags: review?(xidorn+moz) → review+
Attachment #8987136 - Flags: review?(xidorn+moz) → review+
Attachment #8987137 - Flags: review?(xidorn+moz) → review+
Attachment #8987138 - Flags: review?(xidorn+moz) → review+
Attachment #8987139 - Flags: review?(xidorn+moz) → review+
Attachment #8987140 - Flags: review?(xidorn+moz) → review+
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/mozilla-inbound/rev/5ba328c141b7 Merge {Servo,Generic}SpecifiedValues into MappedDeclarations. r=xidorn https://hg.mozilla.org/integration/mozilla-inbound/rev/d535d6534b35 Remove MOZ_STYLO_* macros. r=xidorn
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/mozilla-inbound/rev/0ac1b18d489e followup: Fix a typo that I made while addressing review comments. r=me CLOSED TREE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: