Bug 1413397 - Part2. Remove the check of advanced layer for nsDisplayFieldSetBorder. r=kats draft
authorEthan Lin <ethlin@mozilla.com>
Wed, 01 Nov 2017 10:53:34 +0800
changeset 689883 973539ee061e09bf613e30c06641b86445753d3b
parent 689882 4647d8a98386a031aefd93adc3b4e5c222e8aa19
child 738411 91be1f2f4e8386a387debe03a8d5928293ea3dc4
push id87129
push userbmo:ethlin@mozilla.com
push dateWed, 01 Nov 2017 02:54:49 +0000
reviewerskats
bugs1413397
milestone58.0a1
Bug 1413397 - Part2. Remove the check of advanced layer for nsDisplayFieldSetBorder. r=kats MozReview-Commit-ID: IIb4i4Oymve
layout/forms/nsFieldSetFrame.cpp
--- a/layout/forms/nsFieldSetFrame.cpp
+++ b/layout/forms/nsFieldSetFrame.cpp
@@ -155,20 +155,16 @@ nsDisplayFieldSetBorder::GetBounds(nsDis
 
 bool
 nsDisplayFieldSetBorder::CreateWebRenderCommands(mozilla::wr::DisplayListBuilder& aBuilder,
                                                  mozilla::wr::IpcResourceUpdateQueue& aResources,
                                                  const StackingContextHelper& aSc,
                                                  mozilla::layers::WebRenderLayerManager* aManager,
                                                  nsDisplayListBuilder* aDisplayListBuilder)
 {
-  if (!ShouldUseAdvancedLayer(aManager, gfxPrefs::LayersAllowBorderLayers)) {
-    return false;
-  }
-
   auto frame = static_cast<nsFieldSetFrame*>(mFrame);
   auto offset = ToReferenceFrame();
   nsRect rect;
 
   if (nsIFrame* legend = frame->GetLegend()) {
     rect = frame->VisualBorderRectRelativeToSelf() + offset;
 
     // Legends require a "negative" clip around the text, which WR doesn't support yet.