mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Better debugging for stylesheets and URLs.
Bug: 1470145 Reviewed-by: xidorn MozReview-Commit-ID: FIcz2K1ZYX0
This commit is contained in:
parent
46e572a497
commit
f564b32b75
6 changed files with 63 additions and 28 deletions
|
@ -78,15 +78,6 @@ impl<T: RefCounted> RefPtr<T> {
|
|||
ret
|
||||
}
|
||||
|
||||
/// Create a reference to RefPtr from a reference to pointer.
|
||||
///
|
||||
/// The pointer must be valid and non null.
|
||||
///
|
||||
/// This method doesn't touch refcount.
|
||||
pub unsafe fn from_ptr_ref(ptr: &*mut T) -> &Self {
|
||||
mem::transmute(ptr)
|
||||
}
|
||||
|
||||
/// Produces an FFI-compatible RefPtr that can be stored in style structs.
|
||||
///
|
||||
/// structs::RefPtr does not have a destructor, so this may leak
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue