-{arraysAreEqual, makeElement, tagName, walkTree,
+{arraysAreEqual, benchmark, makeElement, tagName, walkTree,
  findClosestElementFromNode, elementContainsNode, elementMatchesSelector} = Trix
 
 class Trix.HTMLParser extends Trix.BasicObject

  appendBlockForElement: (element) ->
    if @isBlockElement(element) and not @isBlockElement(element.firstChild)
      attributes = getBlockAttributes(element)
      unless elementContainsNode(@currentBlockElement, element) and arraysAreEqual(attributes, @currentBlock.getAttributes())
        @currentBlock = @appendBlockForAttributes(attributes, element)
        @currentBlockElement = element


    dimensions.width = parseInt(width, 10) if width
    dimensions.height = parseInt(height, 10) if height
    dimensions
