OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
10 * | 10 * |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 if (value.unit == CSSParserValue::Function) { | 1578 if (value.unit == CSSParserValue::Function) { |
1579 size_t index = m_floatingFunctions.reverseFind(value.function); | 1579 size_t index = m_floatingFunctions.reverseFind(value.function); |
1580 ASSERT(index != kNotFound); | 1580 ASSERT(index != kNotFound); |
1581 m_floatingFunctions.remove(index); | 1581 m_floatingFunctions.remove(index); |
1582 } | 1582 } |
1583 return value; | 1583 return value; |
1584 } | 1584 } |
1585 | 1585 |
1586 MediaQueryExp* BisonCSSParser::createFloatingMediaQueryExp(const AtomicString& m
ediaFeature, CSSParserValueList* values) | 1586 MediaQueryExp* BisonCSSParser::createFloatingMediaQueryExp(const AtomicString& m
ediaFeature, CSSParserValueList* values) |
1587 { | 1587 { |
1588 m_floatingMediaQueryExp = MediaQueryExp::create(mediaFeature, values); | 1588 m_floatingMediaQueryExp = MediaQueryExp::createIfValid(mediaFeature, values)
; |
1589 return m_floatingMediaQueryExp.get(); | 1589 return m_floatingMediaQueryExp.get(); |
1590 } | 1590 } |
1591 | 1591 |
1592 PassOwnPtrWillBeRawPtr<MediaQueryExp> BisonCSSParser::sinkFloatingMediaQueryExp(
MediaQueryExp* expression) | 1592 PassOwnPtrWillBeRawPtr<MediaQueryExp> BisonCSSParser::sinkFloatingMediaQueryExp(
MediaQueryExp* expression) |
1593 { | 1593 { |
1594 ASSERT_UNUSED(expression, expression == m_floatingMediaQueryExp); | 1594 ASSERT_UNUSED(expression, expression == m_floatingMediaQueryExp); |
1595 return m_floatingMediaQueryExp.release(); | 1595 return m_floatingMediaQueryExp.release(); |
1596 } | 1596 } |
1597 | 1597 |
1598 WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> >* BisonCSSParser::createFloa
tingMediaQueryExpList() | 1598 WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> >* BisonCSSParser::createFloa
tingMediaQueryExpList() |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2192 rule->setProperties(createStylePropertySet()); | 2192 rule->setProperties(createStylePropertySet()); |
2193 clearProperties(); | 2193 clearProperties(); |
2194 | 2194 |
2195 StyleRuleViewport* result = rule.get(); | 2195 StyleRuleViewport* result = rule.get(); |
2196 m_parsedRules.append(rule.release()); | 2196 m_parsedRules.append(rule.release()); |
2197 | 2197 |
2198 return result; | 2198 return result; |
2199 } | 2199 } |
2200 | 2200 |
2201 } | 2201 } |
OLD | NEW |