Closed
Bug 1269976
Opened 9 years ago
Closed 8 years ago
Make nsCSSPseudoElements::GetPseudoType accept an EnabledState
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: xidorn, Assigned: xidorn)
References
Details
Attachments
(2 files)
We may want to allow conditionally enable pseudo elements as well, like pseudo classes and properties.
Updated•9 years ago
|
Summary: Make nsCSSPeudoElements::GetPseudoType accepts a EnabledState → Make nsCSSPseudoElements::GetPseudoType accept an EnabledState
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/50679/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50679/
Attachment #8749006 -
Flags: review?(cam)
Attachment #8749007 -
Flags: review?(cam)
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/50681/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50681/
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → bugzilla
Comment 3•9 years ago
|
||
Comment on attachment 8749006 [details]
MozReview Request: Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
https://reviewboard.mozilla.org/r/50679/#review47995
Attachment #8749006 -
Flags: review?(cam) → review+
Comment 4•9 years ago
|
||
Comment on attachment 8749007 [details]
MozReview Request: Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r?heycam
https://reviewboard.mozilla.org/r/50681/#review47997
Looks good, one question.
::: layout/inspector/inDOMUtils.cpp:1236
(Diff revision 1)
>
> const CSSPseudoElementTypeBase pseudoCount =
> static_cast<CSSPseudoElementTypeBase>(CSSPseudoElementType::Count);
> for (CSSPseudoElementTypeBase i = 0; i < pseudoCount; ++i) {
> CSSPseudoElementType type = static_cast<CSSPseudoElementType>(i);
> - if (!nsCSSPseudoElements::PseudoElementIsUASheetOnly(type)) {
> + if (!nsCSSPseudoElements::IsEnabled(type, CSSEnabledState::eAllContent)) {
Should the "!" be removed?
Attachment #8749007 -
Flags: review?(cam)
Assignee | ||
Comment 5•9 years ago
|
||
https://reviewboard.mozilla.org/r/50681/#review47997
> Should the "!" be removed?
Oops... yeah, it should. Thanks for catching that.
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8749006 [details]
MozReview Request: Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/50679/diff/1-2/
Attachment #8749006 -
Attachment description: MozReview Request: Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r?heycam → MozReview Request: Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
Attachment #8749007 -
Flags: review?(cam)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8749007 [details]
MozReview Request: Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r?heycam
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/50681/diff/1-2/
Updated•9 years ago
|
Attachment #8749007 -
Flags: review?(cam) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8749007 [details]
MozReview Request: Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r?heycam
https://reviewboard.mozilla.org/r/50681/#review48001
Assignee | ||
Comment 9•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f7ecae8e6637fb8208c28f522d5dd43f342cb9d
Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
https://hg.mozilla.org/integration/mozilla-inbound/rev/4e949692600a455c44616fc97cea2d17a546681a
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
Comment 10•9 years ago
|
||
Assignee | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/03a6279bb233dbf539d8ff4614f6309b90f3ca43
Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
https://hg.mozilla.org/integration/mozilla-inbound/rev/8f803cb0eac1fc590a3f9f35fc6a593e6e2d022a
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
Comment 12•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/03a6279bb233
https://hg.mozilla.org/mozilla-central/rev/8f803cb0eac1
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•