Bug 1897361 - Share counter-style / list-style-type representation between Servo and Gecko. r=jwatt
It's not clear to me what is going on there or what caused it. I suspect it might be: https://searchfox.org/mozilla-central/rev/1f46481d6c16f27c989e72b898fd1fddce9f445f/servo/components/style/gecko/values.rs#69 Which is the only potential from_raw_parts caller there. But hard to say without a regression range. However I've been wanting to get rid of that code for a while, and this is a good opportunity for that. The WithCounterStyleNameOrSymbols stuff isn't super pretty, but it has only two callers, and something more complicated might require further refactoring. Differential Revision: https://phabricator.services.mozilla.com/D210814
This commit is contained in:
@@ -7980,7 +7980,7 @@ bool nsBlockFrame::MarkerIsEmpty() const {
|
||||
nsIFrame* marker = GetMarker();
|
||||
const nsStyleList* list = marker->StyleList();
|
||||
return marker->StyleContent()->mContent.IsNone() ||
|
||||
(list->mCounterStyle.IsNone() && list->mListStyleImage.IsNone() &&
|
||||
(list->mListStyleType.IsNone() && list->mListStyleImage.IsNone() &&
|
||||
marker->StyleContent()->NonAltContentItems().IsEmpty());
|
||||
}
|
||||
|
||||
@@ -8657,13 +8657,11 @@ void nsBlockFrame::VerifyOverflowSituation() {
|
||||
}
|
||||
LineIterator line = flow->LinesBegin();
|
||||
LineIterator line_end = flow->LinesEnd();
|
||||
for (; line != line_end && line != cursor; ++line)
|
||||
;
|
||||
for (; line != line_end && line != cursor; ++line);
|
||||
if (line == line_end && overflowLines) {
|
||||
line = overflowLines->mLines.begin();
|
||||
line_end = overflowLines->mLines.end();
|
||||
for (; line != line_end && line != cursor; ++line)
|
||||
;
|
||||
for (; line != line_end && line != cursor; ++line);
|
||||
}
|
||||
return line != line_end;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user