| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 } | 263 } |
| 264 | 264 |
| 265 StyleRule::~StyleRule() | 265 StyleRule::~StyleRule() |
| 266 { | 266 { |
| 267 } | 267 } |
| 268 | 268 |
| 269 MutableStylePropertySet& StyleRule::mutableProperties() | 269 MutableStylePropertySet& StyleRule::mutableProperties() |
| 270 { | 270 { |
| 271 if (!m_properties->isMutable()) | 271 if (!m_properties->isMutable()) |
| 272 m_properties = m_properties->mutableCopy(); | 272 m_properties = m_properties->mutableCopy(); |
| 273 return *toMutableStylePropertySet(m_properties); | 273 return *toMutableStylePropertySet(m_properties.get()); |
| 274 } | 274 } |
| 275 | 275 |
| 276 void StyleRule::setProperties(PassRefPtr<StylePropertySet> properties) | 276 void StyleRule::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> propertie
s) |
| 277 { | 277 { |
| 278 m_properties = properties; | 278 m_properties = properties; |
| 279 } | 279 } |
| 280 | 280 |
| 281 void StyleRule::traceAfterDispatch(Visitor* visitor) |
| 282 { |
| 283 visitor->trace(m_properties); |
| 284 StyleRuleBase::traceAfterDispatch(visitor); |
| 285 } |
| 286 |
| 281 StyleRulePage::StyleRulePage() | 287 StyleRulePage::StyleRulePage() |
| 282 : StyleRuleBase(Page) | 288 : StyleRuleBase(Page) |
| 283 { | 289 { |
| 284 } | 290 } |
| 285 | 291 |
| 286 StyleRulePage::StyleRulePage(const StyleRulePage& o) | 292 StyleRulePage::StyleRulePage(const StyleRulePage& o) |
| 287 : StyleRuleBase(o) | 293 : StyleRuleBase(o) |
| 288 , m_properties(o.m_properties->mutableCopy()) | 294 , m_properties(o.m_properties->mutableCopy()) |
| 289 , m_selectorList(o.m_selectorList) | 295 , m_selectorList(o.m_selectorList) |
| 290 { | 296 { |
| 291 } | 297 } |
| 292 | 298 |
| 293 StyleRulePage::~StyleRulePage() | 299 StyleRulePage::~StyleRulePage() |
| 294 { | 300 { |
| 295 } | 301 } |
| 296 | 302 |
| 297 MutableStylePropertySet& StyleRulePage::mutableProperties() | 303 MutableStylePropertySet& StyleRulePage::mutableProperties() |
| 298 { | 304 { |
| 299 if (!m_properties->isMutable()) | 305 if (!m_properties->isMutable()) |
| 300 m_properties = m_properties->mutableCopy(); | 306 m_properties = m_properties->mutableCopy(); |
| 301 return *toMutableStylePropertySet(m_properties); | 307 return *toMutableStylePropertySet(m_properties.get()); |
| 302 } | 308 } |
| 303 | 309 |
| 304 void StyleRulePage::setProperties(PassRefPtr<StylePropertySet> properties) | 310 void StyleRulePage::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> prope
rties) |
| 305 { | 311 { |
| 306 m_properties = properties; | 312 m_properties = properties; |
| 307 } | 313 } |
| 308 | 314 |
| 315 void StyleRulePage::traceAfterDispatch(Visitor* visitor) |
| 316 { |
| 317 visitor->trace(m_properties); |
| 318 StyleRuleBase::traceAfterDispatch(visitor); |
| 319 } |
| 320 |
| 309 StyleRuleFontFace::StyleRuleFontFace() | 321 StyleRuleFontFace::StyleRuleFontFace() |
| 310 : StyleRuleBase(FontFace) | 322 : StyleRuleBase(FontFace) |
| 311 { | 323 { |
| 312 } | 324 } |
| 313 | 325 |
| 314 StyleRuleFontFace::StyleRuleFontFace(const StyleRuleFontFace& o) | 326 StyleRuleFontFace::StyleRuleFontFace(const StyleRuleFontFace& o) |
| 315 : StyleRuleBase(o) | 327 : StyleRuleBase(o) |
| 316 , m_properties(o.m_properties->mutableCopy()) | 328 , m_properties(o.m_properties->mutableCopy()) |
| 317 { | 329 { |
| 318 } | 330 } |
| 319 | 331 |
| 320 StyleRuleFontFace::~StyleRuleFontFace() | 332 StyleRuleFontFace::~StyleRuleFontFace() |
| 321 { | 333 { |
| 322 } | 334 } |
| 323 | 335 |
| 324 MutableStylePropertySet& StyleRuleFontFace::mutableProperties() | 336 MutableStylePropertySet& StyleRuleFontFace::mutableProperties() |
| 325 { | 337 { |
| 326 if (!m_properties->isMutable()) | 338 if (!m_properties->isMutable()) |
| 327 m_properties = m_properties->mutableCopy(); | 339 m_properties = m_properties->mutableCopy(); |
| 328 return *toMutableStylePropertySet(m_properties); | 340 return *toMutableStylePropertySet(m_properties); |
| 329 } | 341 } |
| 330 | 342 |
| 331 void StyleRuleFontFace::setProperties(PassRefPtr<StylePropertySet> properties) | 343 void StyleRuleFontFace::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> p
roperties) |
| 332 { | 344 { |
| 333 m_properties = properties; | 345 m_properties = properties; |
| 334 } | 346 } |
| 335 | 347 |
| 348 void StyleRuleFontFace::traceAfterDispatch(Visitor* visitor) |
| 349 { |
| 350 visitor->trace(m_properties); |
| 351 StyleRuleBase::traceAfterDispatch(visitor); |
| 352 } |
| 353 |
| 336 StyleRuleGroup::StyleRuleGroup(Type type, WillBeHeapVector<RefPtrWillBeMember<St
yleRuleBase> >& adoptRule) | 354 StyleRuleGroup::StyleRuleGroup(Type type, WillBeHeapVector<RefPtrWillBeMember<St
yleRuleBase> >& adoptRule) |
| 337 : StyleRuleBase(type) | 355 : StyleRuleBase(type) |
| 338 { | 356 { |
| 339 m_childRules.swap(adoptRule); | 357 m_childRules.swap(adoptRule); |
| 340 } | 358 } |
| 341 | 359 |
| 342 StyleRuleGroup::StyleRuleGroup(const StyleRuleGroup& o) | 360 StyleRuleGroup::StyleRuleGroup(const StyleRuleGroup& o) |
| 343 : StyleRuleBase(o) | 361 : StyleRuleBase(o) |
| 344 , m_childRules(o.m_childRules.size()) | 362 , m_childRules(o.m_childRules.size()) |
| 345 { | 363 { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 { | 429 { |
| 412 } | 430 } |
| 413 | 431 |
| 414 MutableStylePropertySet& StyleRuleViewport::mutableProperties() | 432 MutableStylePropertySet& StyleRuleViewport::mutableProperties() |
| 415 { | 433 { |
| 416 if (!m_properties->isMutable()) | 434 if (!m_properties->isMutable()) |
| 417 m_properties = m_properties->mutableCopy(); | 435 m_properties = m_properties->mutableCopy(); |
| 418 return *toMutableStylePropertySet(m_properties); | 436 return *toMutableStylePropertySet(m_properties); |
| 419 } | 437 } |
| 420 | 438 |
| 421 void StyleRuleViewport::setProperties(PassRefPtr<StylePropertySet> properties) | 439 void StyleRuleViewport::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> p
roperties) |
| 422 { | 440 { |
| 423 m_properties = properties; | 441 m_properties = properties; |
| 424 } | 442 } |
| 425 | 443 |
| 444 void StyleRuleViewport::traceAfterDispatch(Visitor* visitor) |
| 445 { |
| 446 visitor->trace(m_properties); |
| 447 StyleRuleBase::traceAfterDispatch(visitor); |
| 448 } |
| 449 |
| 426 StyleRuleFilter::StyleRuleFilter(const String& filterName) | 450 StyleRuleFilter::StyleRuleFilter(const String& filterName) |
| 427 : StyleRuleBase(Filter) | 451 : StyleRuleBase(Filter) |
| 428 , m_filterName(filterName) | 452 , m_filterName(filterName) |
| 429 { | 453 { |
| 430 } | 454 } |
| 431 | 455 |
| 432 StyleRuleFilter::StyleRuleFilter(const StyleRuleFilter& o) | 456 StyleRuleFilter::StyleRuleFilter(const StyleRuleFilter& o) |
| 433 : StyleRuleBase(o) | 457 : StyleRuleBase(o) |
| 434 , m_filterName(o.m_filterName) | 458 , m_filterName(o.m_filterName) |
| 435 , m_properties(o.m_properties->mutableCopy()) | 459 , m_properties(o.m_properties->mutableCopy()) |
| 436 { | 460 { |
| 437 } | 461 } |
| 438 | 462 |
| 439 StyleRuleFilter::~StyleRuleFilter() | 463 StyleRuleFilter::~StyleRuleFilter() |
| 440 { | 464 { |
| 441 } | 465 } |
| 442 | 466 |
| 443 MutableStylePropertySet& StyleRuleFilter::mutableProperties() | 467 MutableStylePropertySet& StyleRuleFilter::mutableProperties() |
| 444 { | 468 { |
| 445 if (!m_properties->isMutable()) | 469 if (!m_properties->isMutable()) |
| 446 m_properties = m_properties->mutableCopy(); | 470 m_properties = m_properties->mutableCopy(); |
| 447 return *toMutableStylePropertySet(m_properties); | 471 return *toMutableStylePropertySet(m_properties); |
| 448 } | 472 } |
| 449 | 473 |
| 450 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) | 474 void StyleRuleFilter::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> pro
perties) |
| 451 { | 475 { |
| 452 m_properties = properties; | 476 m_properties = properties; |
| 453 } | 477 } |
| 454 | 478 |
| 479 void StyleRuleFilter::traceAfterDispatch(Visitor* visitor) |
| 480 { |
| 481 visitor->trace(m_properties); |
| 482 StyleRuleBase::traceAfterDispatch(visitor); |
| 483 } |
| 484 |
| 455 } // namespace WebCore | 485 } // namespace WebCore |
| OLD | NEW |