servo/components
J. Ryan Stinnett cedc17550c Clear visited rules for text inheritance
There are two key steps when resolving text styles with `::first-line`:

1. `ResolveStyleForText` computes the initial style of the text via
   `Servo_ComputedValues_Inherit`
2. `ReparentStyleContext` is called to update style data when the first line
   of text is moved to be a child of the `::first-line` frame

Before this patch, `Servo_ComputedValues_Inherit` would clear out unvisited
rules, but visited styles (with rules inside) were cloned as-is, meaning that
step 1 might leave the text node with a style that has:

* Unvisited rules: None
* Visited rules: Some

When we later go to step 2 and re-parent onto the `::first-line` styles, we try
to cascade with these leftover visited rules.  This causes any `::first-line`
styles from our parent to be overridden by these rules which are no longer quite
right for the new frame tree.

In this patch, we resolve this by changing `StyleBuilder::for_inheritance`
(which is used by step 1's `Servo_ComputedValues_Inherit`) to also clear out
visited rules, so that we use the same logic for both unvisited and visited text
styles when reparenting onto the `::first-line` frame.

MozReview-Commit-ID: 3sgc4eGHBXs
2017-10-11 18:45:45 -05:00
..
atoms Do not NIH queueing a task to fire an event in htmlmediaelement 2017-09-04 16:14:04 +02:00
bluetooth Use BluetoohAdapter mock when bluetooth is disabled 2017-09-17 12:15:00 +02:00
bluetooth_traits
canvas Update to cssparser 0.22 (source location in error types) 2017-10-10 13:28:17 +02:00
canvas_traits Update to cssparser 0.22 (source location in error types) 2017-10-10 13:28:17 +02:00
compositing fix #18472:outdated png crate: various panics 2017-10-09 19:42:00 +08:00
config do not force resource_path on android 2017-10-02 09:24:13 +02:00
constellation Auto merge of #17083 - danielj41:javascript-url-global-3, r=jdm 2017-09-09 04:39:43 -05:00
debugger
deny_public_fields
devtools Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
devtools_traits order derivable traits lists 2017-08-23 21:38:44 +02:00
dom_struct Use the better TokenStream API in dom_struct 2017-09-01 12:15:12 +02:00
domobject_derive Fix quote dependency version 2017-08-23 18:35:42 +02:00
fallible Bug 1400754 - stylo: crash on Win64 Asan build. r=manishearth, dmajor. 2017-10-02 20:53:23 +02:00
geometry
gfx ChildrenOnly -> ChildrenOnly(Option<QualName>) 2017-10-07 08:05:11 -04:00
gfx_traits order derivable traits lists 2017-08-23 21:38:44 +02:00
hashglobe Verify in DiagnosticHashMap::drop. 2017-10-11 10:24:00 -07:00
jstraceable_derive Fix quote dependency version 2017-08-23 18:35:42 +02:00
layout ChildrenOnly -> ChildrenOnly(Option<QualName>) 2017-10-07 08:05:11 -04:00
layout_thread ChildrenOnly -> ChildrenOnly(Option<QualName>) 2017-10-07 08:05:11 -04:00
layout_traits WR multi-document update 2017-07-28 22:28:11 -04:00
lru_cache Hoist lookup() into lru_cache. 2017-09-20 23:22:33 -07:00
malloc_size_of Update to cssparser 0.22 (source location in error types) 2017-10-10 13:28:17 +02:00
malloc_size_of_derive Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
metrics Add paint metrics to Performance Timeline API 2017-08-23 17:30:13 +02:00
msg Made PipelineId non-zero, so optional ids take no more space. 2017-09-18 15:49:38 -05:00
net Bump base64 to 0.6 2017-10-04 13:26:12 +02:00
net_traits fix #18472:outdated png crate: various panics 2017-10-09 19:42:00 +08:00
profile Make Performance Timeline API work in Workers 2017-09-05 17:07:15 +02:00
profile_traits Make Performance Timeline API work in Workers 2017-09-05 17:07:15 +02:00
rand
range Remove usage the unstable Step trait 2017-10-04 10:10:04 +02:00
remutex order derivable traits lists 2017-08-23 21:38:44 +02:00
script Auto merge of #18825 - servo:urls, r=emilio 2017-10-11 08:45:44 -05:00
script_layout_interface Update to cssparser 0.22 (source location in error types) 2017-10-10 13:28:17 +02:00
script_plugins Associate bound WebGLTextures with texture units. 2017-09-28 18:52:29 +02:00
script_traits Introduce MainThreadScriptMsg::RegisterPaintWorklet 2017-09-17 10:19:59 +02:00
selectors CSS parsing error types: flatten nested enums somewhat 2017-10-10 13:28:30 +02:00
servo remove workaround 2017-10-04 05:34:06 +02:00
servo_arc servo_arc: Make Arc do a pointer equality check in eq and ne first. 2017-10-11 09:24:03 +08:00
size_of_test
style Clear visited rules for text inheritance 2017-10-11 18:45:45 -05:00
style_derive style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
style_traits CSS parsing error types: flatten nested enums more still 2017-10-10 18:04:08 +02:00
url order derivable traits lists 2017-08-23 21:38:44 +02:00
webdriver_server fix #18472:outdated png crate: various panics 2017-10-09 19:42:00 +08:00
webvr Implement Gradle flavors 2017-09-30 14:31:22 +02:00
webvr_traits Implement Gradle flavors 2017-09-30 14:31:22 +02:00