forked from mirrors/gecko-dev
Bug 1824877 Part 1 - Rename nsGfxScrollFrame.{h,cpp} to ScrollContainerFrame.{h,cpp}. r=dholbert
Remove the #include from `nsFrameState.cpp` because it is not used. Differential Revision: https://phabricator.services.mozilla.com/D210232
This commit is contained in:
parent
541a247c9a
commit
89d03cb81b
14 changed files with 17 additions and 16 deletions
|
|
@ -201,7 +201,7 @@ fun:*nsDOMNavigationTiming*TimeStampToDOM*
|
||||||
# Several unsigned arithmetic operations with -1
|
# Several unsigned arithmetic operations with -1
|
||||||
src:*/hal/HalWakeLock.cpp
|
src:*/hal/HalWakeLock.cpp
|
||||||
|
|
||||||
# Code in layout/generic/nsGfxScrollFrame.cpp that produces
|
# Code in layout/generic/ScrollContainerFrame.cpp that produces
|
||||||
# somewhat frequent signed integer overflows. Probably harmless
|
# somewhat frequent signed integer overflows. Probably harmless
|
||||||
# because it's layout code.
|
# because it's layout code.
|
||||||
fun:*ClampAndAlignWithPixels*
|
fun:*ClampAndAlignWithPixels*
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ fun:*nsDOMNavigationTiming*TimeStampToDOM*
|
||||||
# Several unsigned arithmetic operations with -1
|
# Several unsigned arithmetic operations with -1
|
||||||
src:*/hal/HalWakeLock.cpp
|
src:*/hal/HalWakeLock.cpp
|
||||||
|
|
||||||
# Code in layout/generic/nsGfxScrollFrame.cpp that produces
|
# Code in layout/generic/ScrollContainerFrame.cpp that produces
|
||||||
# somewhat frequent signed integer overflows. Probably harmless
|
# somewhat frequent signed integer overflows. Probably harmless
|
||||||
# because it's layout code.
|
# because it's layout code.
|
||||||
fun:*ClampAndAlignWithPixels*
|
fun:*ClampAndAlignWithPixels*
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class VisualViewport final : public mozilla::DOMEventTargetHelper {
|
||||||
const nsPoint& aPrevLayoutOffset);
|
const nsPoint& aPrevLayoutOffset);
|
||||||
|
|
||||||
// These two events are modelled after the ScrollEvent class in
|
// These two events are modelled after the ScrollEvent class in
|
||||||
// nsGfxScrollFrame.h.
|
// ScrollContainerFrame.h.
|
||||||
class VisualViewportResizeEvent : public Runnable {
|
class VisualViewportResizeEvent : public Runnable {
|
||||||
public:
|
public:
|
||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
|
||||||
|
|
@ -95,13 +95,13 @@
|
||||||
#include "nsStyleStructInlines.h"
|
#include "nsStyleStructInlines.h"
|
||||||
#include "nsPageContentFrame.h"
|
#include "nsPageContentFrame.h"
|
||||||
#include "mozilla/RestyleManager.h"
|
#include "mozilla/RestyleManager.h"
|
||||||
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
#include "StickyScrollContainer.h"
|
#include "StickyScrollContainer.h"
|
||||||
#include "nsFieldSetFrame.h"
|
#include "nsFieldSetFrame.h"
|
||||||
#include "nsInlineFrame.h"
|
#include "nsInlineFrame.h"
|
||||||
#include "nsBlockFrame.h"
|
#include "nsBlockFrame.h"
|
||||||
#include "nsCanvasFrame.h"
|
#include "nsCanvasFrame.h"
|
||||||
#include "nsFirstLetterFrame.h"
|
#include "nsFirstLetterFrame.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsPageFrame.h"
|
#include "nsPageFrame.h"
|
||||||
#include "nsPageSequenceFrame.h"
|
#include "nsPageSequenceFrame.h"
|
||||||
#include "nsTableWrapperFrame.h"
|
#include "nsTableWrapperFrame.h"
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mozilla/Attributes.h"
|
#include "mozilla/Attributes.h"
|
||||||
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
#include "mozilla/StaticPtr.h"
|
#include "mozilla/StaticPtr.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsIFormControlFrame.h"
|
#include "nsIFormControlFrame.h"
|
||||||
#include "nsISelectControlFrame.h"
|
#include "nsISelectControlFrame.h"
|
||||||
#include "nsSelectsAreaFrame.h"
|
#include "nsSelectsAreaFrame.h"
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@
|
||||||
#include "mozilla/ScopeExit.h"
|
#include "mozilla/ScopeExit.h"
|
||||||
#include "mozilla/PresShell.h"
|
#include "mozilla/PresShell.h"
|
||||||
#include "mozilla/ProfilerLabels.h"
|
#include "mozilla/ProfilerLabels.h"
|
||||||
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
#include "mozilla/StaticPrefs_layout.h"
|
#include "mozilla/StaticPrefs_layout.h"
|
||||||
#include "mozilla/ToString.h"
|
#include "mozilla/ToString.h"
|
||||||
#include "nsBlockFrame.h"
|
#include "nsBlockFrame.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsIFrame.h"
|
#include "nsIFrame.h"
|
||||||
#include "nsIFrameInlines.h"
|
#include "nsIFrameInlines.h"
|
||||||
#include "nsLayoutUtils.h"
|
#include "nsLayoutUtils.h"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
/* rendering object to wrap rendering objects that should be scrollable */
|
/* rendering object to wrap rendering objects that should be scrollable */
|
||||||
|
|
||||||
#include "nsGfxScrollFrame.h"
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
|
|
||||||
#include "ScrollPositionUpdate.h"
|
#include "ScrollPositionUpdate.h"
|
||||||
#include "mozilla/layers/LayersTypes.h"
|
#include "mozilla/layers/LayersTypes.h"
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
/* rendering object to wrap rendering objects that should be scrollable */
|
/* rendering object to wrap rendering objects that should be scrollable */
|
||||||
|
|
||||||
#ifndef nsGfxScrollFrame_h___
|
#ifndef mozilla_ScrollContainerFrame_h_
|
||||||
#define nsGfxScrollFrame_h___
|
#define mozilla_ScrollContainerFrame_h_
|
||||||
|
|
||||||
#include "mozilla/Attributes.h"
|
#include "mozilla/Attributes.h"
|
||||||
#include "nsContainerFrame.h"
|
#include "nsContainerFrame.h"
|
||||||
|
|
@ -1093,4 +1093,4 @@ class nsHTMLScrollFrame : public nsContainerFrame,
|
||||||
|
|
||||||
MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(nsHTMLScrollFrame::OverflowState)
|
MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(nsHTMLScrollFrame::OverflowState)
|
||||||
|
|
||||||
#endif /* nsGfxScrollFrame_h___ */
|
#endif /* mozilla_ScrollContainerFrame_h_ */
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
#include "nsContentUtils.h"
|
#include "nsContentUtils.h"
|
||||||
#include "nsCSSAnonBoxes.h"
|
#include "nsCSSAnonBoxes.h"
|
||||||
#include "nsFontMetrics.h"
|
#include "nsFontMetrics.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsIScrollableFrame.h"
|
#include "nsIScrollableFrame.h"
|
||||||
#include "nsLayoutUtils.h"
|
#include "nsLayoutUtils.h"
|
||||||
#include "nsPresContext.h"
|
#include "nsPresContext.h"
|
||||||
|
|
@ -24,6 +23,7 @@
|
||||||
#include "mozilla/ArrayUtils.h"
|
#include "mozilla/ArrayUtils.h"
|
||||||
#include "mozilla/Likely.h"
|
#include "mozilla/Likely.h"
|
||||||
#include "mozilla/PresShell.h"
|
#include "mozilla/PresShell.h"
|
||||||
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
#include "mozilla/dom/Selection.h"
|
#include "mozilla/dom/Selection.h"
|
||||||
#include "TextDrawTarget.h"
|
#include "TextDrawTarget.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,7 @@ EXPORTS.mozilla += [
|
||||||
"ReflowInput.h",
|
"ReflowInput.h",
|
||||||
"ReflowOutput.h",
|
"ReflowOutput.h",
|
||||||
"ScrollbarPreferences.h",
|
"ScrollbarPreferences.h",
|
||||||
|
"ScrollContainerFrame.h",
|
||||||
"ScrollGeneration.h",
|
"ScrollGeneration.h",
|
||||||
"ScrollOrigin.h",
|
"ScrollOrigin.h",
|
||||||
"ScrollPositionUpdate.h",
|
"ScrollPositionUpdate.h",
|
||||||
|
|
@ -187,7 +188,6 @@ UNIFIED_SOURCES += [
|
||||||
"nsFrameSelection.cpp",
|
"nsFrameSelection.cpp",
|
||||||
"nsFrameSetFrame.cpp",
|
"nsFrameSetFrame.cpp",
|
||||||
"nsFrameState.cpp",
|
"nsFrameState.cpp",
|
||||||
"nsGfxScrollFrame.cpp",
|
|
||||||
"nsGridContainerFrame.cpp",
|
"nsGridContainerFrame.cpp",
|
||||||
"nsHTMLCanvasFrame.cpp",
|
"nsHTMLCanvasFrame.cpp",
|
||||||
"nsIFrame.cpp",
|
"nsIFrame.cpp",
|
||||||
|
|
@ -224,6 +224,7 @@ UNIFIED_SOURCES += [
|
||||||
"ScrollAnimationBezierPhysics.cpp",
|
"ScrollAnimationBezierPhysics.cpp",
|
||||||
"ScrollAnimationMSDPhysics.cpp",
|
"ScrollAnimationMSDPhysics.cpp",
|
||||||
"ScrollbarActivity.cpp",
|
"ScrollbarActivity.cpp",
|
||||||
|
"ScrollContainerFrame.cpp",
|
||||||
"ScrollPositionUpdate.cpp",
|
"ScrollPositionUpdate.cpp",
|
||||||
"ScrollSnap.cpp",
|
"ScrollSnap.cpp",
|
||||||
"ScrollSnapInfo.cpp",
|
"ScrollSnapInfo.cpp",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
#include "nsBlockFrame.h"
|
#include "nsBlockFrame.h"
|
||||||
#include "nsFlexContainerFrame.h"
|
#include "nsFlexContainerFrame.h"
|
||||||
#include "nsGridContainerFrame.h"
|
#include "nsGridContainerFrame.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsIFrame.h"
|
#include "nsIFrame.h"
|
||||||
#include "nsImageFrame.h"
|
#include "nsImageFrame.h"
|
||||||
#include "nsInlineFrame.h"
|
#include "nsInlineFrame.h"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
#include "mozilla/Maybe.h"
|
#include "mozilla/Maybe.h"
|
||||||
#include "mozilla/PodOperations.h" // for PodZero
|
#include "mozilla/PodOperations.h" // for PodZero
|
||||||
#include "mozilla/PresShell.h"
|
#include "mozilla/PresShell.h"
|
||||||
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
#include "mozilla/StaticPrefs_layout.h"
|
#include "mozilla/StaticPrefs_layout.h"
|
||||||
#include "nsAbsoluteContainingBlock.h"
|
#include "nsAbsoluteContainingBlock.h"
|
||||||
#include "nsAlgorithm.h" // for clamped()
|
#include "nsAlgorithm.h" // for clamped()
|
||||||
|
|
@ -29,7 +30,6 @@
|
||||||
#include "nsDisplayList.h"
|
#include "nsDisplayList.h"
|
||||||
#include "nsFieldSetFrame.h"
|
#include "nsFieldSetFrame.h"
|
||||||
#include "nsHTMLButtonControlFrame.h"
|
#include "nsHTMLButtonControlFrame.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsHashKeys.h"
|
#include "nsHashKeys.h"
|
||||||
#include "nsIFrameInlines.h" // for nsIFrame::GetLogicalNormalPosition (don't remove)
|
#include "nsIFrameInlines.h" // for nsIFrame::GetLogicalNormalPosition (don't remove)
|
||||||
#include "nsLayoutUtils.h"
|
#include "nsLayoutUtils.h"
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
#include "mozilla/PresShell.h"
|
#include "mozilla/PresShell.h"
|
||||||
#include "mozilla/PresShellInlines.h"
|
#include "mozilla/PresShellInlines.h"
|
||||||
#include "mozilla/ResultExtensions.h"
|
#include "mozilla/ResultExtensions.h"
|
||||||
|
#include "mozilla/ScrollContainerFrame.h"
|
||||||
#include "mozilla/SelectionMovementUtils.h"
|
#include "mozilla/SelectionMovementUtils.h"
|
||||||
#include "mozilla/Sprintf.h"
|
#include "mozilla/Sprintf.h"
|
||||||
#include "mozilla/StaticAnalysisFunctions.h"
|
#include "mozilla/StaticAnalysisFunctions.h"
|
||||||
|
|
@ -85,7 +86,6 @@
|
||||||
#include "nsFrameSelection.h"
|
#include "nsFrameSelection.h"
|
||||||
#include "nsGkAtoms.h"
|
#include "nsGkAtoms.h"
|
||||||
#include "nsGridContainerFrame.h"
|
#include "nsGridContainerFrame.h"
|
||||||
#include "nsGfxScrollFrame.h"
|
|
||||||
#include "nsCSSAnonBoxes.h"
|
#include "nsCSSAnonBoxes.h"
|
||||||
#include "nsCanvasFrame.h"
|
#include "nsCanvasFrame.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,8 @@ class nsIScrollbarMediator : public nsQueryFrame {
|
||||||
* aOldPos and aNewPos are scroll positions.
|
* aOldPos and aNewPos are scroll positions.
|
||||||
* The scroll positions start with zero at the left edge; implementors that
|
* The scroll positions start with zero at the left edge; implementors that
|
||||||
* want zero at the right edge for RTL content will need to adjust
|
* want zero at the right edge for RTL content will need to adjust
|
||||||
* accordingly. (See nsHTMLScrollFrame::ThumbMoved in nsGfxScrollFrame.cpp.)
|
* accordingly. (See nsHTMLScrollFrame::ThumbMoved in
|
||||||
|
* ScrollContainerFrame.cpp.)
|
||||||
* @note This method might destroy the frame, pres shell, and other objects.
|
* @note This method might destroy the frame, pres shell, and other objects.
|
||||||
*/
|
*/
|
||||||
virtual void ThumbMoved(nsScrollbarFrame* aScrollbar, nscoord aOldPos,
|
virtual void ThumbMoved(nsScrollbarFrame* aScrollbar, nscoord aOldPos,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue