Bug 1275452 - Part 4: Remove anonymous content styling hack in ServoStyleSet. r=bholley
authorCameron McCormack <cam@mcc.id.au>
Wed, 25 May 2016 16:55:50 +1000
changeset 337899 dcf1684b63b37c2a5ad2a2256f0c2f06b5249dfa
parent 337898 5e15a686b21e21ccd2866ff4e08732acebc256f4
child 337900 9a7ac883cb3565bde31e96bd22e93a71a1ea23f1
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1275452
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275452 - Part 4: Remove anonymous content styling hack in ServoStyleSet. r=bholley
layout/style/ServoStyleSet.cpp
--- a/layout/style/ServoStyleSet.cpp
+++ b/layout/style/ServoStyleSet.cpp
@@ -78,22 +78,16 @@ ServoStyleSet::ResolveStyleFor(Element* 
 }
 
 already_AddRefed<nsStyleContext>
 ServoStyleSet::GetContext(nsIContent* aContent,
                           nsStyleContext* aParentContext,
                           nsIAtom* aPseudoTag,
                           CSSPseudoElementType aPseudoType)
 {
-  while (aContent->IsInAnonymousSubtree()) {
-    NS_ERROR("stylo: anonymous content isn't styled properly yet");
-    aContent = aContent->GetParentElement();
-    MOZ_ASSERT(aContent, "couldn't break out of anonymous content");
-  }
-
   RefPtr<ServoComputedValues> computedValues = dont_AddRef(Servo_GetComputedValues(aContent));
   MOZ_ASSERT(computedValues);
   return GetContext(computedValues.forget(), aParentContext, aPseudoTag, aPseudoType);
 }
 
 already_AddRefed<nsStyleContext>
 ServoStyleSet::GetContext(already_AddRefed<ServoComputedValues> aComputedValues,
                           nsStyleContext* aParentContext,