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

Side by Side Diff: sky/engine/core/dom/Node.h

Issue 810793005: Implement Node.ownerScope (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update to spec. Created 6 years 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 | « no previous file | sky/engine/core/dom/Node.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 { 344 {
345 return treeScope().document(); 345 return treeScope().document();
346 } 346 }
347 347
348 TreeScope& treeScope() const 348 TreeScope& treeScope() const
349 { 349 {
350 ASSERT(m_treeScope); 350 ASSERT(m_treeScope);
351 return *m_treeScope; 351 return *m_treeScope;
352 } 352 }
353 353
354 ContainerNode* ownerScope() const;
355
354 bool inActiveDocument() const; 356 bool inActiveDocument() const;
355 357
356 // Returns true if this node is associated with a document and is in its ass ociated document's 358 // Returns true if this node is associated with a document and is in its ass ociated document's
357 // node tree, false otherwise. 359 // node tree, false otherwise.
358 bool inDocument() const 360 bool inDocument() const
359 { 361 {
360 return getFlag(InDocumentFlag); 362 return getFlag(InDocumentFlag);
361 } 363 }
362 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); } 364 bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); }
363 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen tFlag | IsInShadowTreeFlag)); } 365 bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(InDocumen tFlag | IsInShadowTreeFlag)); }
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 } // namespace blink 706 } // namespace blink
705 707
706 #ifndef NDEBUG 708 #ifndef NDEBUG
707 // Outside the WebCore namespace for ease of invocation from gdb. 709 // Outside the WebCore namespace for ease of invocation from gdb.
708 void showNode(const blink::Node*); 710 void showNode(const blink::Node*);
709 void showTree(const blink::Node*); 711 void showTree(const blink::Node*);
710 void showNodePath(const blink::Node*); 712 void showNodePath(const blink::Node*);
711 #endif 713 #endif
712 714
713 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ 715 #endif // SKY_ENGINE_CORE_DOM_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698