| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. |
| 3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return anchor; | 336 return anchor; |
| 337 } else { | 337 } else { |
| 338 // Strict mode, names need to match exactly. | 338 // Strict mode, names need to match exactly. |
| 339 if (anchor->name() == name) | 339 if (anchor->name() == name) |
| 340 return anchor; | 340 return anchor; |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 return 0; | 343 return 0; |
| 344 } | 344 } |
| 345 | 345 |
| 346 bool TreeScope::applyAuthorStyles() const | |
| 347 { | |
| 348 return rootNode().isDocumentNode(); | |
| 349 } | |
| 350 | |
| 351 void TreeScope::adoptIfNeeded(Node& node) | 346 void TreeScope::adoptIfNeeded(Node& node) |
| 352 { | 347 { |
| 353 ASSERT(this); | 348 ASSERT(this); |
| 354 ASSERT(!node.isDocumentNode()); | 349 ASSERT(!node.isDocumentNode()); |
| 355 #if !ENABLE(OILPAN) | 350 #if !ENABLE(OILPAN) |
| 356 ASSERT_WITH_SECURITY_IMPLICATION(!node.m_deletionHasBegun); | 351 ASSERT_WITH_SECURITY_IMPLICATION(!node.m_deletionHasBegun); |
| 357 #endif | 352 #endif |
| 358 TreeScopeAdopter adopter(node, *this); | 353 TreeScopeAdopter adopter(node, *this); |
| 359 if (adopter.needsScopeChange()) | 354 if (adopter.needsScopeChange()) |
| 360 adopter.execute(); | 355 adopter.execute(); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 visitor->trace(m_parentTreeScope); | 553 visitor->trace(m_parentTreeScope); |
| 559 visitor->trace(m_idTargetObserverRegistry); | 554 visitor->trace(m_idTargetObserverRegistry); |
| 560 visitor->trace(m_selection); | 555 visitor->trace(m_selection); |
| 561 visitor->trace(m_elementsById); | 556 visitor->trace(m_elementsById); |
| 562 visitor->trace(m_imageMapsByName); | 557 visitor->trace(m_imageMapsByName); |
| 563 visitor->trace(m_labelsByForAttribute); | 558 visitor->trace(m_labelsByForAttribute); |
| 564 visitor->trace(m_scopedStyleResolver); | 559 visitor->trace(m_scopedStyleResolver); |
| 565 } | 560 } |
| 566 | 561 |
| 567 } // namespace blink | 562 } // namespace blink |
| OLD | NEW |