| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 StyleRuleCondition::StyleRuleCondition( | 345 StyleRuleCondition::StyleRuleCondition( |
| 346 RuleType type, | 346 RuleType type, |
| 347 const String& conditionText, | 347 const String& conditionText, |
| 348 HeapVector<Member<StyleRuleBase>>& adoptRules) | 348 HeapVector<Member<StyleRuleBase>>& adoptRules) |
| 349 : StyleRuleGroup(type, adoptRules), m_conditionText(conditionText) {} | 349 : StyleRuleGroup(type, adoptRules), m_conditionText(conditionText) {} |
| 350 | 350 |
| 351 StyleRuleCondition::StyleRuleCondition(const StyleRuleCondition& conditionRule) | 351 StyleRuleCondition::StyleRuleCondition(const StyleRuleCondition& conditionRule) |
| 352 : StyleRuleGroup(conditionRule), | 352 : StyleRuleGroup(conditionRule), |
| 353 m_conditionText(conditionRule.m_conditionText) {} | 353 m_conditionText(conditionRule.m_conditionText) {} |
| 354 | 354 |
| 355 StyleRuleMedia::StyleRuleMedia(MediaQuerySet* media, | 355 StyleRuleMedia::StyleRuleMedia(RefPtr<MediaQuerySet> media, |
| 356 HeapVector<Member<StyleRuleBase>>& adoptRules) | 356 HeapVector<Member<StyleRuleBase>>& adoptRules) |
| 357 : StyleRuleCondition(Media, adoptRules), m_mediaQueries(media) {} | 357 : StyleRuleCondition(Media, adoptRules), m_mediaQueries(media) {} |
| 358 | 358 |
| 359 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& mediaRule) | 359 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& mediaRule) |
| 360 : StyleRuleCondition(mediaRule) { | 360 : StyleRuleCondition(mediaRule) { |
| 361 if (mediaRule.m_mediaQueries) | 361 if (mediaRule.m_mediaQueries) |
| 362 m_mediaQueries = mediaRule.m_mediaQueries->copy(); | 362 m_mediaQueries = mediaRule.m_mediaQueries->copy(); |
| 363 } | 363 } |
| 364 | 364 |
| 365 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleMedia) { | 365 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleMedia) { |
| 366 visitor->trace(m_mediaQueries); | |
| 367 StyleRuleCondition::traceAfterDispatch(visitor); | 366 StyleRuleCondition::traceAfterDispatch(visitor); |
| 368 } | 367 } |
| 369 | 368 |
| 370 StyleRuleSupports::StyleRuleSupports( | 369 StyleRuleSupports::StyleRuleSupports( |
| 371 const String& conditionText, | 370 const String& conditionText, |
| 372 bool conditionIsSupported, | 371 bool conditionIsSupported, |
| 373 HeapVector<Member<StyleRuleBase>>& adoptRules) | 372 HeapVector<Member<StyleRuleBase>>& adoptRules) |
| 374 : StyleRuleCondition(Supports, conditionText, adoptRules), | 373 : StyleRuleCondition(Supports, conditionText, adoptRules), |
| 375 m_conditionIsSupported(conditionIsSupported) {} | 374 m_conditionIsSupported(conditionIsSupported) {} |
| 376 | 375 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 392 m_properties = m_properties->mutableCopy(); | 391 m_properties = m_properties->mutableCopy(); |
| 393 return *toMutableStylePropertySet(m_properties); | 392 return *toMutableStylePropertySet(m_properties); |
| 394 } | 393 } |
| 395 | 394 |
| 396 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) { | 395 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) { |
| 397 visitor->trace(m_properties); | 396 visitor->trace(m_properties); |
| 398 StyleRuleBase::traceAfterDispatch(visitor); | 397 StyleRuleBase::traceAfterDispatch(visitor); |
| 399 } | 398 } |
| 400 | 399 |
| 401 } // namespace blink | 400 } // namespace blink |
| OLD | NEW |