Beispiel #1
0
void MediaQueryParser::handleBlocks(const CSSParserToken& token)
{
    if (token.getBlockType() == CSSParserToken::BlockStart
            && (token.type() != LeftParenthesisToken || m_blockWatcher.blockLevel()))
        m_state = SkipUntilBlockEnd;
}
Beispiel #2
0
void MediaQueryParser::skipUntilBlockEnd(CSSParserTokenType /*type */, const CSSParserToken& token)
{
    if (token.getBlockType() == CSSParserToken::BlockEnd && !m_blockWatcher.blockLevel())
        m_state = SkipUntilComma;
}