Bug 1545342 - part 2: Make some public enum of nsIPresShell move to mozilla namespace and defined as enum class in PresShellForwards.h r=smaug

This patch moves some `enum` in `nsIPresShell` which are in public scope into
`mozilla` namespace and change them as `enum class`es.

Unfortunately, only "where to scroll" enum is just defines constants of
percentages of scroll destination.  Therefore, this patch makes only them
as `static const`.

Differential Revision: https://phabricator.services.mozilla.com/D28606
This commit is contained in:
Masayuki Nakano
2019-04-25 05:04:15 +00:00
parent b709985d96
commit 12b5544904
66 changed files with 336 additions and 335 deletions

View File

@@ -296,7 +296,7 @@ nsresult nsGenericHTMLFrameElement::AfterSetAttr(
presShell ? presShell->GetRootScrollFrame() : nullptr;
if (rootScroll) {
presShell->FrameNeedsReflow(
rootScroll, nsIPresShell::eStyleChange, NS_FRAME_IS_DIRTY);
rootScroll, IntrinsicDirty::StyleChange, NS_FRAME_IS_DIRTY);
}
}
}