mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove get_*
on getters as per RFC 0344.
https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
This commit is contained in:
parent
210a243137
commit
bf4db405e4
9 changed files with 35 additions and 35 deletions
|
@ -72,7 +72,7 @@ impl HTMLCollection {
|
|||
root: JS::from_ref(root),
|
||||
filter: filter,
|
||||
// Default values for the cache
|
||||
cached_version: Cell::new(root.get_inclusive_descendants_version()),
|
||||
cached_version: Cell::new(root.inclusive_descendants_version()),
|
||||
cached_cursor_element: MutNullableHeap::new(None),
|
||||
cached_cursor_index: Cell::new(OptionU32::none()),
|
||||
cached_length: Cell::new(OptionU32::none()),
|
||||
|
@ -93,7 +93,7 @@ impl HTMLCollection {
|
|||
fn validate_cache(&self) {
|
||||
// Clear the cache if the root version is different from our cached version
|
||||
let cached_version = self.cached_version.get();
|
||||
let curr_version = self.root.get_inclusive_descendants_version();
|
||||
let curr_version = self.root.inclusive_descendants_version();
|
||||
if curr_version != cached_version {
|
||||
// Default values for the cache
|
||||
self.cached_version.set(curr_version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue