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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 { | 340 { |
341 m_properties = properties; | 341 m_properties = properties; |
342 } | 342 } |
343 | 343 |
344 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleFontFace) | 344 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleFontFace) |
345 { | 345 { |
346 visitor->trace(m_properties); | 346 visitor->trace(m_properties); |
347 StyleRuleBase::traceAfterDispatch(visitor); | 347 StyleRuleBase::traceAfterDispatch(visitor); |
348 } | 348 } |
349 | 349 |
350 StyleRuleGroup::StyleRuleGroup(Type type, WillBeHeapVector<RefPtrWillBeMember<St
yleRuleBase> >& adoptRule) | 350 StyleRuleGroup::StyleRuleGroup(Type type, WillBeHeapVector<RefPtrWillBeMember<St
yleRuleBase>>& adoptRule) |
351 : StyleRuleBase(type) | 351 : StyleRuleBase(type) |
352 { | 352 { |
353 m_childRules.swap(adoptRule); | 353 m_childRules.swap(adoptRule); |
354 } | 354 } |
355 | 355 |
356 StyleRuleGroup::StyleRuleGroup(const StyleRuleGroup& o) | 356 StyleRuleGroup::StyleRuleGroup(const StyleRuleGroup& o) |
357 : StyleRuleBase(o) | 357 : StyleRuleBase(o) |
358 , m_childRules(o.m_childRules.size()) | 358 , m_childRules(o.m_childRules.size()) |
359 { | 359 { |
360 for (unsigned i = 0; i < m_childRules.size(); ++i) | 360 for (unsigned i = 0; i < m_childRules.size(); ++i) |
361 m_childRules[i] = o.m_childRules[i]->copy(); | 361 m_childRules[i] = o.m_childRules[i]->copy(); |
362 } | 362 } |
363 | 363 |
364 void StyleRuleGroup::wrapperInsertRule(unsigned index, PassRefPtrWillBeRawPtr<St
yleRuleBase> rule) | 364 void StyleRuleGroup::wrapperInsertRule(unsigned index, PassRefPtrWillBeRawPtr<St
yleRuleBase> rule) |
365 { | 365 { |
366 m_childRules.insert(index, rule); | 366 m_childRules.insert(index, rule); |
367 } | 367 } |
368 | 368 |
369 void StyleRuleGroup::wrapperRemoveRule(unsigned index) | 369 void StyleRuleGroup::wrapperRemoveRule(unsigned index) |
370 { | 370 { |
371 m_childRules.remove(index); | 371 m_childRules.remove(index); |
372 } | 372 } |
373 | 373 |
374 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleGroup) | 374 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleGroup) |
375 { | 375 { |
376 visitor->trace(m_childRules); | 376 visitor->trace(m_childRules); |
377 StyleRuleBase::traceAfterDispatch(visitor); | 377 StyleRuleBase::traceAfterDispatch(visitor); |
378 } | 378 } |
379 | 379 |
380 StyleRuleMedia::StyleRuleMedia(PassRefPtrWillBeRawPtr<MediaQuerySet> media, Will
BeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) | 380 StyleRuleMedia::StyleRuleMedia(PassRefPtrWillBeRawPtr<MediaQuerySet> media, Will
BeHeapVector<RefPtrWillBeMember<StyleRuleBase>>& adoptRules) |
381 : StyleRuleGroup(Media, adoptRules) | 381 : StyleRuleGroup(Media, adoptRules) |
382 , m_mediaQueries(media) | 382 , m_mediaQueries(media) |
383 { | 383 { |
384 } | 384 } |
385 | 385 |
386 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o) | 386 StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o) |
387 : StyleRuleGroup(o) | 387 : StyleRuleGroup(o) |
388 { | 388 { |
389 if (o.m_mediaQueries) | 389 if (o.m_mediaQueries) |
390 m_mediaQueries = o.m_mediaQueries->copy(); | 390 m_mediaQueries = o.m_mediaQueries->copy(); |
391 } | 391 } |
392 | 392 |
393 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleMedia) | 393 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleMedia) |
394 { | 394 { |
395 visitor->trace(m_mediaQueries); | 395 visitor->trace(m_mediaQueries); |
396 StyleRuleGroup::traceAfterDispatch(visitor); | 396 StyleRuleGroup::traceAfterDispatch(visitor); |
397 } | 397 } |
398 | 398 |
399 StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool condition
IsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) | 399 StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool condition
IsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase>>& adoptRules) |
400 : StyleRuleGroup(Supports, adoptRules) | 400 : StyleRuleGroup(Supports, adoptRules) |
401 , m_conditionText(conditionText) | 401 , m_conditionText(conditionText) |
402 , m_conditionIsSupported(conditionIsSupported) | 402 , m_conditionIsSupported(conditionIsSupported) |
403 { | 403 { |
404 } | 404 } |
405 | 405 |
406 StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o) | 406 StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o) |
407 : StyleRuleGroup(o) | 407 : StyleRuleGroup(o) |
408 , m_conditionText(o.m_conditionText) | 408 , m_conditionText(o.m_conditionText) |
409 , m_conditionIsSupported(o.m_conditionIsSupported) | 409 , m_conditionIsSupported(o.m_conditionIsSupported) |
(...skipping 27 matching lines...) Expand all Loading... |
437 m_properties = properties; | 437 m_properties = properties; |
438 } | 438 } |
439 | 439 |
440 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) | 440 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) |
441 { | 441 { |
442 visitor->trace(m_properties); | 442 visitor->trace(m_properties); |
443 StyleRuleBase::traceAfterDispatch(visitor); | 443 StyleRuleBase::traceAfterDispatch(visitor); |
444 } | 444 } |
445 | 445 |
446 } // namespace blink | 446 } // namespace blink |
OLD | NEW |