Bug 976812 - Mark nsDisplaySVGText as using component alpha. r=heycam
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 27 Feb 2014 15:57:45 +1300
changeset 171233 bdf4fc6eba98e2d3283c79aa083fbcd2fa59595d
parent 171232 de17e5deb35dda741819a5a9d690af1ebbc4d5fd
child 171234 88723262c85cb94d4a5412708e38a1319f66c3a2
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersheycam
bugs976812
milestone30.0a1
Bug 976812 - Mark nsDisplaySVGText as using component alpha. r=heycam
layout/svg/SVGTextFrame.cpp
--- a/layout/svg/SVGTextFrame.cpp
+++ b/layout/svg/SVGTextFrame.cpp
@@ -3085,16 +3085,20 @@ public:
   virtual void DisableComponentAlpha() MOZ_OVERRIDE {
     mDisableSubpixelAA = true;
   }
   virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
                        HitTestState* aState,
                        nsTArray<nsIFrame*> *aOutFrames) MOZ_OVERRIDE;
   virtual void Paint(nsDisplayListBuilder* aBuilder,
                      nsRenderingContext* aCtx) MOZ_OVERRIDE;
+  virtual nsRect GetComponentAlphaBounds(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE {
+    bool snap;
+    return GetBounds(aBuilder, &snap);
+  }
 private:
   bool mDisableSubpixelAA;
 };
 
 void
 nsDisplaySVGText::HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
                           HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames)
 {