mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Make GetFlattenedTreeParent more straight-forward.
Now that accessing nsIContent slots is not a blob of virtual function calls, we should be able to unify logic here, and speed up the not-so-rare case for chrome, while keeping the usual case fast. Bug: 1427511 Reviewed-by: smaug MozReview-Commit-ID: 87iY5Cbhx4T
This commit is contained in:
parent
27a443fbaa
commit
51e2942c25
2 changed files with 17 additions and 9 deletions
|
@ -503,8 +503,6 @@ extern "C" {
|
|||
pub fn Gecko_RecordTraversalStatistics ( total : u32 , parallel : u32 , total_t : u32 , parallel_t : u32 , total_s : u32 , parallel_s : u32 , ) ;
|
||||
} extern "C" {
|
||||
pub fn Gecko_IsInDocument ( node : RawGeckoNodeBorrowed , ) -> bool ;
|
||||
} extern "C" {
|
||||
pub fn Gecko_FlattenedTreeParentIsParent ( node : RawGeckoNodeBorrowed , ) -> bool ;
|
||||
} extern "C" {
|
||||
pub fn Gecko_IsSignificantChild ( node : RawGeckoNodeBorrowed , text_is_significant : bool , whitespace_is_significant : bool , ) -> bool ;
|
||||
} extern "C" {
|
||||
|
@ -1599,4 +1597,4 @@ extern "C" {
|
|||
pub fn Gecko_GetElementsWithId ( aDocument : * const nsIDocument , aId : * mut nsAtom , ) -> * const nsTArray < * mut Element > ;
|
||||
} extern "C" {
|
||||
pub fn Gecko_GetBoolPrefValue ( pref_name : * const :: std :: os :: raw :: c_char , ) -> bool ;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue