| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 { | 356 { |
| 357 m_childRules.remove(index); | 357 m_childRules.remove(index); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void StyleRuleGroup::traceAfterDispatch(Visitor* visitor) | 360 void StyleRuleGroup::traceAfterDispatch(Visitor* visitor) |
| 361 { | 361 { |
| 362 visitor->trace(m_childRules); | 362 visitor->trace(m_childRules); |
| 363 StyleRuleBase::traceAfterDispatch(visitor); | 363 StyleRuleBase::traceAfterDispatch(visitor); |
| 364 } | 364 } |
| 365 | 365 |
| 366 StyleRuleMedia::StyleRuleMedia(PassRefPtr<MediaQuerySet> media, WillBeHeapVector
<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) | 366 StyleRuleMedia::StyleRuleMedia(PassRefPtrWillBeRawPtr<MediaQuerySet> media, Will
BeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) |
| 367 : StyleRuleGroup(Media, adoptRules) | 367 : StyleRuleGroup(Media, adoptRules) |
| 368 , m_mediaQueries(media) | 368 , m_mediaQueries(media) |
| 369 { | 369 { |
| 370 } | 370 } |
| 371 | 371 |
| 372 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o) | 372 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o) |
| 373 : StyleRuleGroup(o) | 373 : StyleRuleGroup(o) |
| 374 { | 374 { |
| 375 if (o.m_mediaQueries) | 375 if (o.m_mediaQueries) |
| 376 m_mediaQueries = o.m_mediaQueries->copy(); | 376 m_mediaQueries = o.m_mediaQueries->copy(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 void StyleRuleMedia::traceAfterDispatch(Visitor* visitor) |
| 380 { |
| 381 visitor->trace(m_mediaQueries); |
| 382 StyleRuleGroup::traceAfterDispatch(visitor); |
| 383 } |
| 384 |
| 379 StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool condition
IsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) | 385 StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool condition
IsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) |
| 380 : StyleRuleGroup(Supports, adoptRules) | 386 : StyleRuleGroup(Supports, adoptRules) |
| 381 , m_conditionText(conditionText) | 387 , m_conditionText(conditionText) |
| 382 , m_conditionIsSupported(conditionIsSupported) | 388 , m_conditionIsSupported(conditionIsSupported) |
| 383 { | 389 { |
| 384 } | 390 } |
| 385 | 391 |
| 386 StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o) | 392 StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o) |
| 387 : StyleRuleGroup(o) | 393 : StyleRuleGroup(o) |
| 388 , m_conditionText(o.m_conditionText) | 394 , m_conditionText(o.m_conditionText) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 m_properties = m_properties->mutableCopy(); | 446 m_properties = m_properties->mutableCopy(); |
| 441 return *toMutableStylePropertySet(m_properties); | 447 return *toMutableStylePropertySet(m_properties); |
| 442 } | 448 } |
| 443 | 449 |
| 444 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) | 450 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) |
| 445 { | 451 { |
| 446 m_properties = properties; | 452 m_properties = properties; |
| 447 } | 453 } |
| 448 | 454 |
| 449 } // namespace WebCore | 455 } // namespace WebCore |
| OLD | NEW |