mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Add more useful statistics to DUMP_STYLE_STATISTICS.
This commit is contained in:
parent
591733408d
commit
687ea0ef9e
3 changed files with 83 additions and 13 deletions
|
@ -60,6 +60,11 @@ impl fmt::Debug for PropertyDeclarationBlock {
|
|||
}
|
||||
|
||||
impl PropertyDeclarationBlock {
|
||||
/// Returns the number of declarations in the block.
|
||||
pub fn len(&self) -> usize {
|
||||
self.declarations.len()
|
||||
}
|
||||
|
||||
/// Create an empty block
|
||||
pub fn new() -> Self {
|
||||
PropertyDeclarationBlock {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue