Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: Source/core/dom/TreeScope.cpp

Issue 581663003: Remove more stuff from applyAuthorStyles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698