mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Manually inline class and ID getters.
Somewhat ugly but hopefully not too much. Somehow it ends up removing more lines than adding. Differential Revision: https://phabricator.services.mozilla.com/D3536
This commit is contained in:
parent
fe05c8ecad
commit
e9a99b2a7f
4 changed files with 138 additions and 84 deletions
|
@ -263,7 +263,7 @@ impl fmt::Display for WeakAtom {
|
|||
|
||||
impl Atom {
|
||||
/// Execute a callback with the atom represented by `ptr`.
|
||||
pub unsafe fn with<F, R>(ptr: *mut nsAtom, callback: F) -> R
|
||||
pub unsafe fn with<F, R>(ptr: *const nsAtom, callback: F) -> R
|
||||
where
|
||||
F: FnOnce(&Atom) -> R,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue