Skip to content

Commit

Permalink
stylo: Rename ServoComputedValues -> ServoComputedData
Browse files Browse the repository at this point in the history
ServoComputedValues is confusing because ComputedValues is actually
ServoStyleContext on the C++ side.
  • Loading branch information
Manishearth committed Jul 21, 2017
1 parent cca0eac commit b332a06
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 165 deletions.
18 changes: 9 additions & 9 deletions components/style/gecko/generated/bindings.rs
Expand Up @@ -7,7 +7,7 @@ type nsACString_internal = nsACString;
type nsAString_internal = nsAString;
pub type ServoStyleContextBorrowed<'a> = &'a ::properties::ComputedValues;
pub type ServoStyleContextBorrowedOrNull<'a> = Option<&'a ::properties::ComputedValues>;
pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues;
pub type ServoComputedDataBorrowed<'a> = &'a ServoComputedData;
use gecko_bindings::structs::mozilla::css::GridTemplateAreasValue;
use gecko_bindings::structs::mozilla::css::ErrorReporter;
use gecko_bindings::structs::mozilla::css::ImageValue;
Expand Down Expand Up @@ -220,7 +220,7 @@ use gecko_bindings::structs::nsresult;
use gecko_bindings::structs::Loader;
use gecko_bindings::structs::LoaderReusableStyleSheets;
use gecko_bindings::structs::ServoStyleSheet;
use gecko_bindings::structs::ServoComputedValues;
use gecko_bindings::structs::ServoComputedData;
use gecko_bindings::structs::ServoStyleContext;
use gecko_bindings::structs::ServoStyleContextStrong;
use gecko_bindings::structs::EffectCompositor_CascadeLevel;
Expand Down Expand Up @@ -535,7 +535,7 @@ extern "C" {
ServoStyleContextBorrowedOrNull,
pres_context:
RawGeckoPresContextBorrowed,
values: ServoComputedValuesBorrowed,
values: ServoComputedDataBorrowed,
pseudo_type: CSSPseudoElementType,
pseudo_tag: *mut nsIAtom);
}
Expand Down Expand Up @@ -1046,8 +1046,8 @@ extern "C" {
-> CSSPseudoElementType;
}
extern "C" {
pub fn Gecko_CalcStyleDifference(old_style: *const ServoStyleContext,
new_style: *const ServoStyleContext,
pub fn Gecko_CalcStyleDifference(old_style: ServoStyleContextBorrowed,
new_style: ServoStyleContextBorrowed,
old_style_bits: u64,
any_style_changed: *mut bool)
-> nsChangeHint;
Expand Down Expand Up @@ -1984,10 +1984,10 @@ extern "C" {
-> ServoStyleContextStrong;
}
extern "C" {
pub fn Servo_StyleContext_AddRef(ctx: &ServoStyleContext);
pub fn Servo_StyleContext_AddRef(ctx: ServoStyleContextBorrowed);
}
extern "C" {
pub fn Servo_StyleContext_Release(ctx: &ServoStyleContext);
pub fn Servo_StyleContext_Release(ctx: ServoStyleContextBorrowed);
}
extern "C" {
pub fn Servo_StyleSet_MightHaveAttributeDependency(set:
Expand Down Expand Up @@ -2709,9 +2709,9 @@ extern "C" {
}
extern "C" {
pub fn Servo_ComputedValues_EqualCustomProperties(first:
ServoComputedValuesBorrowed,
ServoComputedDataBorrowed,
second:
ServoComputedValuesBorrowed)
ServoComputedDataBorrowed)
-> bool;
}
extern "C" {
Expand Down

0 comments on commit b332a06

Please sign in to comment.