| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 return m_shadowRootRareData->styleSheets(); | 383 return m_shadowRootRareData->styleSheets(); |
| 384 } | 384 } |
| 385 | 385 |
| 386 bool ShadowRoot::childrenSupportStyleSharing() const | 386 bool ShadowRoot::childrenSupportStyleSharing() const |
| 387 { | 387 { |
| 388 if (!m_shadowRootRareData) | 388 if (!m_shadowRootRareData) |
| 389 return false; | 389 return false; |
| 390 return !m_shadowRootRareData->childrenAffectedByFirstChildRules() | 390 return !m_shadowRootRareData->childrenAffectedByFirstChildRules() |
| 391 && !m_shadowRootRareData->childrenAffectedByLastChildRules() | 391 && !m_shadowRootRareData->childrenAffectedByLastChildRules() |
| 392 && !m_shadowRootRareData->childrenAffectedByDirectAdjacentRules() | 392 && !m_shadowRootRareData->childrenAffectedByDirectAdjacentRules() |
| 393 && !m_shadowRootRareData->childrenAffectedByIndirectAdjacentRules() |
| 393 && !m_shadowRootRareData->childrenAffectedByForwardPositionalRules() | 394 && !m_shadowRootRareData->childrenAffectedByForwardPositionalRules() |
| 394 && !m_shadowRootRareData->childrenAffectedByBackwardPositionalRules(); | 395 && !m_shadowRootRareData->childrenAffectedByBackwardPositionalRules(); |
| 395 } | 396 } |
| 396 | 397 |
| 397 bool ShadowRoot::childrenAffectedByPositionalRules() const | 398 bool ShadowRoot::childrenAffectedByPositionalRules() const |
| 398 { | 399 { |
| 399 return m_shadowRootRareData && (m_shadowRootRareData->childrenAffectedByForw
ardPositionalRules() || m_shadowRootRareData->childrenAffectedByBackwardPosition
alRules()); | 400 return m_shadowRootRareData && (m_shadowRootRareData->childrenAffectedByForw
ardPositionalRules() || m_shadowRootRareData->childrenAffectedByBackwardPosition
alRules()); |
| 400 } | 401 } |
| 401 | 402 |
| 402 bool ShadowRoot::childrenAffectedByFirstChildRules() const | 403 bool ShadowRoot::childrenAffectedByFirstChildRules() const |
| 403 { | 404 { |
| 404 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByFirst
ChildRules(); | 405 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByFirst
ChildRules(); |
| 405 } | 406 } |
| 406 | 407 |
| 407 bool ShadowRoot::childrenAffectedByLastChildRules() const | 408 bool ShadowRoot::childrenAffectedByLastChildRules() const |
| 408 { | 409 { |
| 409 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByLastC
hildRules(); | 410 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByLastC
hildRules(); |
| 410 } | 411 } |
| 411 | 412 |
| 412 bool ShadowRoot::childrenAffectedByDirectAdjacentRules() const | 413 bool ShadowRoot::childrenAffectedByDirectAdjacentRules() const |
| 413 { | 414 { |
| 414 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByDirec
tAdjacentRules(); | 415 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByDirec
tAdjacentRules(); |
| 415 } | 416 } |
| 416 | 417 |
| 418 bool ShadowRoot::childrenAffectedByIndirectAdjacentRules() const |
| 419 { |
| 420 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByIndir
ectAdjacentRules(); |
| 421 } |
| 422 |
| 417 bool ShadowRoot::childrenAffectedByForwardPositionalRules() const | 423 bool ShadowRoot::childrenAffectedByForwardPositionalRules() const |
| 418 { | 424 { |
| 419 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByForwa
rdPositionalRules(); | 425 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByForwa
rdPositionalRules(); |
| 420 } | 426 } |
| 421 | 427 |
| 422 bool ShadowRoot::childrenAffectedByBackwardPositionalRules() const | 428 bool ShadowRoot::childrenAffectedByBackwardPositionalRules() const |
| 423 { | 429 { |
| 424 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByBackw
ardPositionalRules(); | 430 return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByBackw
ardPositionalRules(); |
| 425 } | 431 } |
| 426 | 432 |
| 427 void ShadowRoot::setChildrenAffectedByForwardPositionalRules() | 433 void ShadowRoot::setChildrenAffectedByForwardPositionalRules() |
| 428 { | 434 { |
| 429 ensureShadowRootRareData()->setChildrenAffectedByForwardPositionalRules(true
); | 435 ensureShadowRootRareData()->setChildrenAffectedByForwardPositionalRules(true
); |
| 430 } | 436 } |
| 431 | 437 |
| 432 void ShadowRoot::setChildrenAffectedByDirectAdjacentRules() | 438 void ShadowRoot::setChildrenAffectedByDirectAdjacentRules() |
| 433 { | 439 { |
| 434 ensureShadowRootRareData()->setChildrenAffectedByDirectAdjacentRules(true); | 440 ensureShadowRootRareData()->setChildrenAffectedByDirectAdjacentRules(true); |
| 435 } | 441 } |
| 436 | 442 |
| 443 void ShadowRoot::setChildrenAffectedByIndirectAdjacentRules() |
| 444 { |
| 445 ensureShadowRootRareData()->setChildrenAffectedByIndirectAdjacentRules(true)
; |
| 446 } |
| 447 |
| 437 void ShadowRoot::setChildrenAffectedByBackwardPositionalRules() | 448 void ShadowRoot::setChildrenAffectedByBackwardPositionalRules() |
| 438 { | 449 { |
| 439 ensureShadowRootRareData()->setChildrenAffectedByBackwardPositionalRules(tru
e); | 450 ensureShadowRootRareData()->setChildrenAffectedByBackwardPositionalRules(tru
e); |
| 440 } | 451 } |
| 441 | 452 |
| 442 void ShadowRoot::setChildrenAffectedByFirstChildRules() | 453 void ShadowRoot::setChildrenAffectedByFirstChildRules() |
| 443 { | 454 { |
| 444 ensureShadowRootRareData()->setChildrenAffectedByFirstChildRules(true); | 455 ensureShadowRootRareData()->setChildrenAffectedByFirstChildRules(true); |
| 445 } | 456 } |
| 446 | 457 |
| 447 void ShadowRoot::setChildrenAffectedByLastChildRules() | 458 void ShadowRoot::setChildrenAffectedByLastChildRules() |
| 448 { | 459 { |
| 449 ensureShadowRootRareData()->setChildrenAffectedByLastChildRules(true); | 460 ensureShadowRootRareData()->setChildrenAffectedByLastChildRules(true); |
| 450 } | 461 } |
| 451 | 462 |
| 452 } | 463 } |
| OLD | NEW |