зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1264837 Part 15 - Remove nsVideoFrameBase r=dholbert
MozReview-Commit-ID: JUBNfhJ9LlJ --HG-- extra : rebase_source : 0ce35a28bfadb27a690eb103b9d7cd94e056061f
This commit is contained in:
Родитель
f930931ef5
Коммит
669dc32fe5
|
@ -42,7 +42,7 @@ NS_NewHTMLVideoFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsVideoFrame)
|
||||
|
||||
nsVideoFrame::nsVideoFrame(nsStyleContext* aContext)
|
||||
: nsVideoFrameBase(aContext)
|
||||
: nsContainerFrame(aContext)
|
||||
{
|
||||
EnableVisibilityTracking();
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ nsVideoFrame::~nsVideoFrame()
|
|||
NS_QUERYFRAME_HEAD(nsVideoFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsVideoFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsIAnonymousContentCreator)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsVideoFrameBase)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
||||
|
||||
nsresult
|
||||
nsVideoFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
|
||||
|
@ -145,7 +145,7 @@ nsVideoFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
|||
nsContentUtils::DestroyAnonymousContent(&mCaptionDiv);
|
||||
nsContentUtils::DestroyAnonymousContent(&mVideoControls);
|
||||
nsContentUtils::DestroyAnonymousContent(&mPosterImage);
|
||||
nsVideoFrameBase::DestroyFrom(aDestructRoot);
|
||||
nsContainerFrame::DestroyFrom(aDestructRoot);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -612,7 +612,7 @@ nsVideoFrame::AttributeChanged(int32_t aNameSpaceID,
|
|||
if (aAttribute == nsGkAtoms::poster && HasVideoElement()) {
|
||||
UpdatePosterSource(true);
|
||||
}
|
||||
return nsVideoFrameBase::AttributeChanged(aNameSpaceID,
|
||||
return nsContainerFrame::AttributeChanged(aNameSpaceID,
|
||||
aAttribute,
|
||||
aModType);
|
||||
}
|
||||
|
@ -623,13 +623,13 @@ nsVideoFrame::OnVisibilityChange(Visibility aNewVisibility,
|
|||
{
|
||||
nsCOMPtr<nsIImageLoadingContent> imageLoader = do_QueryInterface(mPosterImage);
|
||||
if (!imageLoader) {
|
||||
nsVideoFrameBase::OnVisibilityChange(aNewVisibility, aNonvisibleAction);
|
||||
nsContainerFrame::OnVisibilityChange(aNewVisibility, aNonvisibleAction);
|
||||
return;
|
||||
}
|
||||
|
||||
imageLoader->OnVisibilityChange(aNewVisibility, aNonvisibleAction);
|
||||
|
||||
nsVideoFrameBase::OnVisibilityChange(aNewVisibility, aNonvisibleAction);
|
||||
nsContainerFrame::OnVisibilityChange(aNewVisibility, aNonvisibleAction);
|
||||
}
|
||||
|
||||
bool nsVideoFrame::HasVideoElement() {
|
||||
|
|
|
@ -26,9 +26,8 @@ class nsAString;
|
|||
class nsPresContext;
|
||||
class nsDisplayItem;
|
||||
|
||||
typedef nsContainerFrame nsVideoFrameBase;
|
||||
|
||||
class nsVideoFrame : public nsVideoFrameBase, public nsIAnonymousContentCreator
|
||||
class nsVideoFrame : public nsContainerFrame
|
||||
, public nsIAnonymousContentCreator
|
||||
{
|
||||
public:
|
||||
template <typename T> using Maybe = mozilla::Maybe<T>;
|
||||
|
|
Загрузка…
Ссылка в новой задаче