aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/generated_content.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishearth@gmail.com>2017-07-17 11:41:52 -0700
committerManish Goregaokar <manishsmail@gmail.com>2017-07-17 18:02:25 -0700
commit808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737 (patch)
treeb6f4e04c1d0a4e427b2360d60abb02eea8e5aec8 /components/layout/generated_content.rs
parent04b0ae64f2fe606744142e353388749fe283a8ad (diff)
downloadservo-808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737.tar.gz
servo-808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737.zip
stylo: Use ComputedValuesInner instead of ComputedValues when we don't need it
Diffstat (limited to 'components/layout/generated_content.rs')
-rw-r--r--components/layout/generated_content.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/generated_content.rs b/components/layout/generated_content.rs
index 5f6f9b1e706..281c5965c9f 100644
--- a/components/layout/generated_content.rs
+++ b/components/layout/generated_content.rs
@@ -18,7 +18,7 @@ use smallvec::SmallVec;
use std::collections::{HashMap, LinkedList};
use style::computed_values::{display, list_style_type};
use style::computed_values::content::ContentItem;
-use style::properties::ServoComputedValues;
+use style::properties::ComputedValues;
use style::selector_parser::RestyleDamage;
use style::servo::restyle_damage::RESOLVE_GENERATED_CONTENT;
use text::TextRunScanner;
@@ -298,7 +298,7 @@ impl<'a,'b> ResolveGeneratedContentFragmentMutator<'a,'b> {
self.incremented = true
}
- fn quote(&self, style: &ServoComputedValues, close: bool) -> String {
+ fn quote(&self, style: &ComputedValues, close: bool) -> String {
let quotes = &style.get_list().quotes;
if quotes.0.is_empty() {
return String::new()
@@ -368,7 +368,7 @@ impl Counter {
layout_context: &LayoutContext,
node: OpaqueNode,
pseudo: PseudoElementType<()>,
- style: ::StyleArc<ServoComputedValues>,
+ style: ::StyleArc<ComputedValues>,
list_style_type: list_style_type::T,
mode: RenderingMode)
-> Option<SpecificFragmentInfo> {
@@ -431,7 +431,7 @@ struct CounterValue {
fn render_text(layout_context: &LayoutContext,
node: OpaqueNode,
pseudo: PseudoElementType<()>,
- style: ::StyleArc<ServoComputedValues>,
+ style: ::StyleArc<ComputedValues>,
string: String)
-> Option<SpecificFragmentInfo> {
let mut fragments = LinkedList::new();