Stylesheet popStylesheet ( ) { // The stylesheetLocatorStack needs to be popped because // a locator was pushed in for this stylesheet by the SAXparser by calling // setDocumentLocator(). if ( ! m_stylesheetLocatorStack . isEmpty ( ) ) m_stylesheetLocatorStack . pop ( ) ; if ( ! m_stylesheets . isEmpty ( ) ) m_lastPoppedStylesheet = ( Stylesheet ) m_stylesheets . pop ( ) ; // Shouldn't this be null if stylesheets is empty? -sb return m_lastPoppedStylesheet ; }
Pop the last stylesheet pushed and return the stylesheet that this handler is constructing and set the last popped stylesheet member . Also pop the stylesheet locator stack .