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

Side by Side Diff: sky/engine/core/dom/TreeScope.cpp

Issue 833443003: Remove applyAuthorStyles flag. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if (m_selection) 206 if (m_selection)
207 return m_selection.get(); 207 return m_selection.get();
208 208
209 // FIXME: The correct selection in Shadow DOM requires that Position can hav e a ShadowRoot 209 // FIXME: The correct selection in Shadow DOM requires that Position can hav e a ShadowRoot
210 // as a container. 210 // as a container.
211 // See https://bugs.webkit.org/show_bug.cgi?id=82697 211 // See https://bugs.webkit.org/show_bug.cgi?id=82697
212 m_selection = DOMSelection::create(this); 212 m_selection = DOMSelection::create(this);
213 return m_selection.get(); 213 return m_selection.get();
214 } 214 }
215 215
216 bool TreeScope::applyAuthorStyles() const
217 {
218 return rootNode().isDocumentNode();
219 }
220
221 void TreeScope::adoptIfNeeded(Node& node) 216 void TreeScope::adoptIfNeeded(Node& node)
222 { 217 {
223 ASSERT(this); 218 ASSERT(this);
224 ASSERT(!node.isDocumentNode()); 219 ASSERT(!node.isDocumentNode());
225 #if !ENABLE(OILPAN) 220 #if !ENABLE(OILPAN)
226 ASSERT_WITH_SECURITY_IMPLICATION(!node.m_deletionHasBegun); 221 ASSERT_WITH_SECURITY_IMPLICATION(!node.m_deletionHasBegun);
227 #endif 222 #endif
228 TreeScopeAdopter adopter(node, *this); 223 TreeScopeAdopter adopter(node, *this);
229 if (adopter.needsScopeChange()) 224 if (adopter.needsScopeChange())
230 adopter.execute(); 225 adopter.execute();
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 411
417 for (size_t i = 0; i < list.size(); i++) { 412 for (size_t i = 0; i < list.size(); i++) {
418 if (list[i]->contents() != otherList[i]->contents()) 413 if (list[i]->contents() != otherList[i]->contents())
419 return false; 414 return false;
420 } 415 }
421 416
422 return true; 417 return true;
423 } 418 }
424 419
425 } // namespace blink 420 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698