Bug 1808888 - [refactor] Migrate NS_STYLE_LIST_STYLE_POSITION_* defines r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D166140
This commit is contained in:
Ben Freist
2023-01-09 07:07:13 +00:00
parent bc68fffade
commit 1a9ad453e3
10 changed files with 11 additions and 10 deletions

View File

@@ -5988,7 +5988,7 @@ nsIFrame* nsCSSFrameConstructor::FindSiblingInternal(
auto* marker = nsLayoutUtils::GetMarkerFrame(aContent);
const bool isInsideMarker =
marker && marker->GetInFlowParent()->StyleList()->mListStylePosition ==
NS_STYLE_LIST_STYLE_POSITION_INSIDE;
StyleListStylePosition::Inside;
return isInsideMarker ? marker : nullptr;
};
@@ -9780,7 +9780,7 @@ void nsCSSFrameConstructor::ProcessChildren(
(listItem = do_QueryFrame(aFrame)) &&
!styleParentFrame->IsFieldSetFrame()) {
isOutsideMarker = computedStyle->StyleList()->mListStylePosition ==
NS_STYLE_LIST_STYLE_POSITION_OUTSIDE;
StyleListStylePosition::Outside;
ItemFlags extraFlags;
if (isOutsideMarker) {
extraFlags += ItemFlag::IsForOutsideMarker;