Boris Zbarsky
45eed99d99
Bug 1324618 part 10. Fix style resolution for pseudo-elements to actually pass through the right parent style. r=emilio
...
MozReview-Commit-ID: 1UVJj9l0tKi
2017-06-26 23:35:09 -07:00
Emilio Cobos Álvarez
a0e2e119c3
Bug 1376077: Remove aPseudoElement argument from the StyleSet classes. r=heycam
...
MozReview-Commit-ID: InxDtd5Pmf3
2017-06-24 11:25:05 +02:00
Brad Werth
8abb58fab4
Bug 1373193 Part 2: Create and call a new UpdateStyleSheet method on ServoStyleSet when a ServoStyleSheet has its inner cloned. r=xidorn
...
MozReview-Commit-ID: GKxnEiZvziS
2017-06-19 10:47:13 -07:00
Cameron McCormack
bfb8c04b71
Bug 1373874 - stylo: Clear Servo data from NAC created by position:fixed replicated frames too. r=bz
...
We don't need the call to ClearServoDataFromSubtree in
nsDocumentViewer::SetPageMode because the pres shell destruction
will call BeginShutdown on the style set, which will do it for us.
MozReview-Commit-ID: ErSAyr3l0wm
2017-06-18 17:57:55 +08:00
Xidorn Quan
d7fcde119b
Bug 1359217 part 6 - Add ServoStyleRuleMap to handle style rule mapping. r=heycam
...
This commit adds class ServoStyleRuleMap which caches the mapping from
raw Servo style rule to Gecko's wrapper object.
It is a per-document object, and is added as an observer of document
when constructed, so that it updates data inside when possible.
For safety consideration, this change also makes ServoStyleRule support
weak pointer, and use weak pointer inside ServoStyleRuleMap.
MozReview-Commit-ID: YxBnZ88tjf
2017-06-19 15:45:43 +10:00
Cameron McCormack
9d18031cce
Bug 1352306 - Part 2: stylo: Only snapshot EventStates if there is some rule that depends on it. r=emilio
...
MozReview-Commit-ID: J5xhdi7pGSv
2017-05-09 18:13:45 +08:00
Cameron McCormack
ad3e8ba35b
Bug 1352306 - Part 1: stylo: Only snapshot attributes if there is some rule that depends on that attribute. r=emilio
...
MozReview-Commit-ID: Emey96ovc2a
2017-05-08 16:04:31 +08:00
Sebastian Hengst
931186e1b7
Backed out changeset bb6b79e53e82 (bug 1352306) as requested by emilio. r=backout
2017-06-17 14:16:54 +02:00
Sebastian Hengst
667e4b12e2
Backed out changeset 46d7719ee8ae (bug 1352306)
2017-06-17 14:16:20 +02:00
Cameron McCormack
71fdcfcde8
Bug 1352306 - Part 2: stylo: Only snapshot EventStates if there is some rule that depends on it. r=emilio
...
MozReview-Commit-ID: J5xhdi7pGSv
2017-05-09 18:13:45 +08:00
Cameron McCormack
0e46a12d89
Bug 1352306 - Part 1: stylo: Only snapshot attributes if there is some rule that depends on that attribute. r=emilio
...
MozReview-Commit-ID: Emey96ovc2a
2017-05-08 16:04:31 +08:00
Bobby Holley
08b7a41caa
Bug 1373725 - Trigger a rule tree gc at the end of DoProcessPendingRestyles. r=emilio
...
MozReview-Commit-ID: W2lkQohudA
2017-06-16 21:59:58 -07:00
Manish Goregaokar
533734efc7
Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley
...
MozReview-Commit-ID: 4IcROeDNoBA
2017-06-10 22:27:45 -07:00
Xidorn Quan
850fec5ca4
Bug 1372757 - Remove several dependencies to ServoBindings.h. r=heycam
...
MozReview-Commit-ID: Lruin1acS19
2017-06-14 09:38:16 +10:00
Cameron McCormack
14cf0d858c
Bug 1370793 - Followup bustage fix. r=me
2017-06-13 11:51:15 +08:00
Cameron McCormack
a3d60562f0
Bug 1370793 - Part 1: Don't try to style unstyled children of elements with newly applied XBL bindings if in a display:none or unstyled subtree. r=bholley
...
MozReview-Commit-ID: EFi2Vp19AQm
2017-06-11 19:11:08 +08:00
Nazım Can Altınova
c22e06c6a2
Bug 1355724 - stylo: Fix propagation of quirks mode information to servo side r=emilio
...
It was getting inial value from gecko side before and that was always
eCompatibility_NavQuirks. Created an FFI to fetch quirks mode.
MozReview-Commit-ID: 1lXsM9hwldZ
2017-06-10 17:22:23 +03:00
Hiroyuki Ikezoe
e51e0ef7a0
Bug 1358966 - Use Servo_GetAnimationValues. r=birtles
...
MozReview-Commit-ID: 7ag2IFUViDX
2017-06-09 06:19:37 +09:00
L. David Baron
03d37750a7
Bug 1369260 - Remove use of MOZ_ASSERT_IF in layout. r=heycam
...
As I've said before, as module owner I prefer that MOZ_ASSERT_IF not be
used in the module because I consider it to be unreadable. However, a
few uses have crept in, and this patch removes them.
I consider it to be unreadable because the name looks like a name that
uses smalltalk-ish naming conventions, i.e., with a part of the name
corresponding to each parameter, in order. However, the parameters are
in the order opposite the name.
This was written primarily with the vim commands:
:%s/MOZ_ASSERT_IF(\([^,]*\),/MOZ_ASSERT(!\1 ||/
:wn
followed by manual cleanup for indentation and removal of !!.
MozReview-Commit-ID: G6rLbOn7k8d
2017-06-06 22:27:17 -07:00
Emilio Cobos Álvarez
d352758f8f
Bug 1357461: Cache effective media query results. r=heycam
...
And implement a function that returns whether they changed, to be shared with
Servo.
MozReview-Commit-ID: 8gnAdJaEfZC
2017-06-03 18:59:07 +02:00
Hiroyuki Ikezoe
11db326869
Bug 1367293 - Don't get parent style for GetComputedKeyframeValuesFor. r=birtles
...
MozReview-Commit-ID: 7WjsO7P2QGz
2017-06-02 09:38:54 +09:00
Hiroyuki Ikezoe
4c498515cd
Bug 1367293 - Don't get parent style for ComputeAnimationValue. r=birtles
...
MozReview-Commit-ID: 4TskjmoKchD
2017-06-02 09:38:46 +09:00
Hiroyuki Ikezoe
1eced9b23b
Bug 1367293 - Get parent style from the target element. r=birtles
...
We can get the parent style from element tree in servo side.
The parent style has been already restyled.
E.g.;
When we get target element style with nsComputedDOMStyle::GetStyleContext,
the function flushes styles so that the parent style has also
restyled.
When we call Servo_GetComputedKeyframeValues, it's called from a
SequentialTask, that means all elements have been already restyled.
Unfortunately we can't assert that the parent style is not stale
to check the parent element has no dirty descendant bit since
Servo_GetComputedKeyframeValues is called in a SequantialTask
that is processed before post traversal, that means elements
still have the dirty bit to update nsStyleContext in the
post traversal.
MozReview-Commit-ID: AC2ZRyzk3eu
2017-06-02 09:38:22 +09:00
Emilio Cobos Álvarez
65423fd88b
Bug 1368589: handle the case where a RebuildAllStyleData event is posted and stylesheets are added at the same time. r=heycam
...
MozReview-Commit-ID: IWiTCCo55cg
2017-05-30 02:46:33 +02:00
Emilio Cobos Álvarez
0ebab4c299
Bug 1357583: Tidy the PostRestyleEventForCSSRuleChanges API. r=heycam
...
MozReview-Commit-ID: BtOWWC5knsi
2017-05-29 23:01:50 +02:00
Emilio Cobos Álvarez
e7785ec381
Bug 1357583: style: Hook up the invalidator in the StyleSheetSet. r=heycam
...
MozReview-Commit-ID: IhgKAovTJMX
2017-05-29 23:01:43 +02:00
Emilio Cobos Álvarez
fb442d9711
Bug 1357583: Ensure we send the document element to Servo when flushing stylesheets. r=heycam
...
We'll use it to invalidate stuff.
MozReview-Commit-ID: Il3wO5JQh1Y
2017-05-29 23:01:37 +02:00
Cameron McCormack
5e1a69a21d
Bug 1366921 - stylo: Update user fonts in cached font metrics' gfxFontGroups in the pre-traversal step. r=bholley,jfkthame
...
MozReview-Commit-ID: DAhhWyAjxku
2017-05-26 22:29:10 +08:00
J. Ryan Stinnett
feb0ddcc55
Bug 1328509 - Wire up visited values in ServoStyleSet::GetContext. r=emilio
...
Create an extra style context using the visited values (if they exist). This
mirrors the logic Gecko performs in nsStyleSet::GetContext for visited support.
MozReview-Commit-ID: EiJQXDgz8tX
2017-05-25 10:13:23 -05:00
Emilio Cobos Álvarez
3dd88e000f
Bug 1367553: Move dirty style tracking to the StyleSet. r=heycam
...
MozReview-Commit-ID: 2ut8SAwNGN2
2017-05-24 02:53:08 +02:00
Phil Ringnalda
3864eaed9a
Backed out 2 changesets (bug 1367553) for build bustage
...
CLOSED TREE
Backed out changeset 3e6c9a752596 (bug 1367553)
Backed out changeset 1ee24478fa16 (bug 1367553)
MozReview-Commit-ID: B805jBJYcqL
2017-05-25 06:13:01 -07:00
Emilio Cobos Álvarez
4e79a99600
Bug 1367553: Move dirty style tracking to the StyleSet. r=heycam
...
MozReview-Commit-ID: 2ut8SAwNGN2
2017-05-24 02:53:08 +02:00
Cameron McCormack
7128db143e
Bug 1366157 - stylo: Implement getDefaultComputedStyle. r=emilio
...
MozReview-Commit-ID: GKr06ylK4tA
2017-05-24 14:37:47 +08:00
Brad Werth
fdeacb1873
Bug 1339629 Part 10: Implement ServoStyleSet::EnsureUniqueInnerOnCSSSheets. r=heycam
...
MozReview-Commit-ID: GuUqKYrV60z
2017-05-15 17:11:08 -07:00
Brad Werth
84b701f39e
Bug 1339629 Part 9: Uplift EnsureUniqueInnerOnCSSSheets and SetNeedsRestyleAfterEnsureUniqueInner into StyleSetHandle, and eliminate CSSStyleSheet::EnsureUniqueInner. r=heycam
...
MozReview-Commit-ID: LH7vTKUmuv8
2017-05-15 16:30:10 -07:00
Brad Werth
472ff76be3
Bug 1339629 Part 7: Ensure ServoStyleSets keep sheets informed of the stylesets they are part of. r=heycam
...
MozReview-Commit-ID: EH9GO749LlN
2017-05-23 17:02:51 -07:00
Phil Ringnalda
dc5d30b907
Backed out 6 changesets (bug 1328509) for Windows 7 failures in test_visited_reftests.html
...
Backed out changeset 8388d8c76fed (bug 1328509)
Backed out changeset 182a88607e08 (bug 1328509)
Backed out changeset 008efac7764b (bug 1328509)
Backed out changeset c2ce10b8bc37 (bug 1328509)
Backed out changeset 65bbc73c87aa (bug 1328509)
Backed out changeset e20d3d5170c2 (bug 1328509)
MozReview-Commit-ID: BSmqdFP1Zom
2017-05-24 22:12:53 -07:00
J. Ryan Stinnett
25219c9280
Bug 1328509 - Wire up visited values in ServoStyleSet::GetContext. r=emilio
...
Create an extra style context using the visited values (if they exist). This
mirrors the logic Gecko performs in nsStyleSet::GetContext for visited support.
MozReview-Commit-ID: EiJQXDgz8tX
2017-05-24 21:20:06 -05:00
Jonathan Kew
9cee45cb0c
Bug 734008 - DeCOMtaminate nsILanguageAtomService, make it a non-refcounted singleton and clean up various call sites. r=m_kato
2015-04-03 21:39:23 +02:00
Hiroyuki Ikezoe
f68519c81c
Bug 1364799 - Add a new TraversalRestyleBehavior that represents the traversal is triggered by CSS rule changes. r=birtles
...
And propagate the new flag to servo if mRestyleForCSSRuleChanges is set.
MozReview-Commit-ID: HRZ5duYgciF
2017-05-21 08:16:26 +09:00
Bobby Holley
7d3ad73578
Bug 1329876 - Stop accepting aTreeMatchContext in the ServoStyleSet methods. r=bz
...
This makes it clear it's unused.
2017-05-20 21:59:59 +02:00
Manish Goregaokar
ecd90e3c8a
Bug 1362599 - Remember which languages were used and force-cache when reset; r=heycam
2017-05-20 21:48:04 +02:00
Boris Chiou
18ca899edb
Bug 1334036 - Part 11: Trigger animation-only restyle when we handle an event with coordinates. r=birtles,heycam
...
We need to request an animation-only restyle to force flush all throttled
animations on main thread when we handle an event with coordinates
(e.g. mouse event).
MozReview-Commit-ID: KkjeQVsLgTl
2017-05-19 16:16:41 +08:00
Emilio Cobos Álvarez
93c3013be8
Bug 1364862: Make PostRebuildAllStyleData async. r=heycam
...
MozReview-Commit-ID: EM3eUP1dWwA
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2017-05-15 18:02:59 +02:00
Xidorn Quan
2f56b27839
Bug 1328319 part 7 - Enable querying counter-style rule on Servo backend. r=heycam
...
MozReview-Commit-ID: Aj3AcW1KmRe
2017-05-11 14:47:24 +10:00
Emilio Cobos Álvarez
b1cba72009
Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn
...
This allows us to access metadata using `match` instead of comparison with
atoms, which makes it doable to get the pseudo-element flags in the future.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
MozReview-Commit-ID: KgGjFePmhyS
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2017-05-14 18:39:22 +02:00
Emilio Cobos Álvarez
49c2f75c1a
Bug 1364412: Don't ignore the pseudo-element argument in ResolvePseudoElementStyle. r=heycam
...
MozReview-Commit-ID: 4KA4bj2Ww5W
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2017-05-13 19:29:14 +02:00
Emilio Cobos Álvarez
ca76897873
Bug 1364412: Simplify Servo_HasAuthorSpecifiedRules looking at the pseudo style. r=bholley
...
MozReview-Commit-ID: HpV92ttZGJz
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2017-05-12 17:51:32 +02:00
Hiroyuki Ikezoe
9dd0727d3d
Bug 1354947 - Rename FillKeyframesForName to GetKeyframesForName. r=birtles
...
MozReview-Commit-ID: AOLygEtuhpO
2017-05-13 16:34:38 +09:00
Brad Werth
d86ae7b72e
Bug 1363572 Part 3: Change ServoStyleSet to use sheet addresses as unique IDs. r=heycam
...
MozReview-Commit-ID: BZSKZx0wjL8
2017-05-12 12:04:55 -07:00