style: Simplify the ruby text adjustment.

StyleBuilder keeps a reference to the parent style, so no need to get it as an
argument.
This commit is contained in:
Emilio Cobos Álvarez 2017-08-15 07:47:12 +02:00
parent e0b834033d
commit 3e2d87d8db
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 5 additions and 5 deletions

View file

@ -1821,7 +1821,7 @@ pub extern "C" fn Servo_ComputedValues_Inherit(
if for_text {
StyleAdjuster::new(&mut style)
.adjust_for_text(reference);
.adjust_for_text();
}
style.build()