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

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

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Add FIXME. Created 7 years, 4 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') | Source/core/editing/ApplyStyleCommand.cpp » ('j') | 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 { 74 {
75 ASSERT(rootNode); 75 ASSERT(rootNode);
76 ASSERT(document); 76 ASSERT(document);
77 ASSERT(rootNode != document); 77 ASSERT(rootNode != document);
78 m_rootNode->setTreeScope(Handle<TreeScope>(this)); 78 m_rootNode->setTreeScope(Handle<TreeScope>(this));
79 } 79 }
80 80
81 TreeScope::TreeScope(const Handle<Document>& document) 81 TreeScope::TreeScope(const Handle<Document>& document)
82 : m_rootNode(document) 82 : m_rootNode(document)
83 , m_documentScope(document) 83 , m_documentScope(document)
84 , m_parentTreeScope(0)
85 , m_idTargetObserverRegistry(IdTargetObserverRegistry::create()) 84 , m_idTargetObserverRegistry(IdTargetObserverRegistry::create())
86 { 85 {
87 ASSERT(document); 86 ASSERT(document);
88 m_rootNode->setTreeScope(Handle<TreeScope>(this)); 87 m_rootNode->setTreeScope(Handle<TreeScope>(this));
89 } 88 }
90 89
91 TreeScope::TreeScope() 90 TreeScope::TreeScope()
92 : m_rootNode(0)
93 , m_documentScope(0)
94 , m_parentTreeScope(0)
95 { 91 {
96 } 92 }
97 93
98 TreeScope::~TreeScope() 94 TreeScope::~TreeScope()
99 { 95 {
100 m_rootNode->setTreeScope(noDocumentInstance()); 96 m_rootNode->setTreeScope(noDocumentInstance());
101 97
102 if (m_selection) { 98 if (m_selection) {
103 m_selection->clearTreeScope(); 99 m_selection->clearTreeScope();
104 m_selection = 0; 100 m_selection = 0;
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 return nullptr; 416 return nullptr;
421 } 417 }
422 418
423 void TreeScope::visitWith(Visitor* v) const 419 void TreeScope::visitWith(Visitor* v) const
424 { 420 {
425 ASSERT(this == noDocumentInstance()); 421 ASSERT(this == noDocumentInstance());
426 v->visit(this, &AcceptTrait<TreeScope>::accept); 422 v->visit(this, &AcceptTrait<TreeScope>::accept);
427 } 423 }
428 424
429 } // namespace WebCore 425 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | Source/core/editing/ApplyStyleCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698