Loading layout/svg/SVGGeometryFrame.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -669,10 +669,6 @@ bool SVGGeometryFrame::IsInvisible() const { return true; } if (IsSVGImageFrame()) { return false; } const nsStyleSVG* style = StyleSVG(); SVGContextPaint* contextPaint = SVGContextPaint::GetContextPaint(GetContent()); Loading layout/svg/SVGGeometryFrame.h +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class SVGGeometryFrame : public nsIFrame, public ISVGDisplayableFrame { // SVGGeometryFrame methods gfxMatrix GetCanvasTM(); bool IsInvisible() const; virtual bool IsInvisible() const; protected: // ISVGDisplayableFrame interface: Loading layout/svg/SVGImageFrame.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -423,6 +423,17 @@ void SVGImageFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, aLists.Content()->AppendNewToTop<DisplaySVGGeometry>(aBuilder, this); } bool SVGImageFrame::IsInvisible() const { if (!StyleVisibility()->IsVisible()) { return true; } // Anything below will round to zero later down the pipeline. constexpr float opacity_threshold = 1.0 / 128.0; return StyleEffects()->mOpacity <= opacity_threshold; } bool SVGImageFrame::CreateWebRenderCommands( mozilla::wr::DisplayListBuilder& aBuilder, mozilla::wr::IpcResourceUpdateQueue& aResources, Loading layout/svg/SVGImageFrame.h +3 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,9 @@ class SVGImageFrame final : public SVGGeometryFrame, public nsIReflowCallback { /// Always sync decode our image when painting if @aForce is true. void SetForceSyncDecoding(bool aForce) { mForceSyncDecoding = aForce; } // SVGImageFrame methods: bool IsInvisible() const override; private: uint16_t GetHitTestFlags(); Loading Loading
layout/svg/SVGGeometryFrame.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -669,10 +669,6 @@ bool SVGGeometryFrame::IsInvisible() const { return true; } if (IsSVGImageFrame()) { return false; } const nsStyleSVG* style = StyleSVG(); SVGContextPaint* contextPaint = SVGContextPaint::GetContextPaint(GetContent()); Loading
layout/svg/SVGGeometryFrame.h +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class SVGGeometryFrame : public nsIFrame, public ISVGDisplayableFrame { // SVGGeometryFrame methods gfxMatrix GetCanvasTM(); bool IsInvisible() const; virtual bool IsInvisible() const; protected: // ISVGDisplayableFrame interface: Loading
layout/svg/SVGImageFrame.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -423,6 +423,17 @@ void SVGImageFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, aLists.Content()->AppendNewToTop<DisplaySVGGeometry>(aBuilder, this); } bool SVGImageFrame::IsInvisible() const { if (!StyleVisibility()->IsVisible()) { return true; } // Anything below will round to zero later down the pipeline. constexpr float opacity_threshold = 1.0 / 128.0; return StyleEffects()->mOpacity <= opacity_threshold; } bool SVGImageFrame::CreateWebRenderCommands( mozilla::wr::DisplayListBuilder& aBuilder, mozilla::wr::IpcResourceUpdateQueue& aResources, Loading
layout/svg/SVGImageFrame.h +3 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,9 @@ class SVGImageFrame final : public SVGGeometryFrame, public nsIReflowCallback { /// Always sync decode our image when painting if @aForce is true. void SetForceSyncDecoding(bool aForce) { mForceSyncDecoding = aForce; } // SVGImageFrame methods: bool IsInvisible() const override; private: uint16_t GetHitTestFlags(); Loading