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

Side by Side Diff: third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All Rights Reserved. 2 * Copyright (C) 2014 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 for (size_t i = 0; i < path.size(); ++i) { 69 for (size_t i = 0; i < path.size(); ++i) {
70 if (path[i].treeScopeEventContext().isUnclosedTreeOf(*this)) 70 if (path[i].treeScopeEventContext().isUnclosedTreeOf(*this))
71 m_eventPath->append(path[i].node()); 71 m_eventPath->append(path[i].node());
72 } 72 }
73 if (window) 73 if (window)
74 m_eventPath->append(window); 74 m_eventPath->append(window);
75 return *m_eventPath; 75 return *m_eventPath;
76 } 76 }
77 77
78 TouchEventContext* TreeScopeEventContext::touchEventContext() const
79 {
80 return m_touchEventContext.get();
81 }
82
78 TouchEventContext* TreeScopeEventContext::ensureTouchEventContext() 83 TouchEventContext* TreeScopeEventContext::ensureTouchEventContext()
79 { 84 {
80 if (!m_touchEventContext) 85 if (!m_touchEventContext)
81 m_touchEventContext = TouchEventContext::create(); 86 m_touchEventContext = TouchEventContext::create();
82 return m_touchEventContext.get(); 87 return m_touchEventContext.get();
83 } 88 }
84 89
85 PassRefPtrWillBeRawPtr<TreeScopeEventContext> TreeScopeEventContext::create(Tree Scope& treeScope) 90 PassRefPtrWillBeRawPtr<TreeScopeEventContext> TreeScopeEventContext::create(Tree Scope& treeScope)
86 { 91 {
87 return adoptRefWillBeNoop(new TreeScopeEventContext(treeScope)); 92 return adoptRefWillBeNoop(new TreeScopeEventContext(treeScope));
(...skipping 29 matching lines...) Expand all
117 m_preOrder = orderNumber; 122 m_preOrder = orderNumber;
118 m_containingClosedShadowTree = (rootNode().isShadowRoot() && !toShadowRoot(r ootNode()).isOpen()) ? this : nearestAncestorClosedTreeScopeEventContext; 123 m_containingClosedShadowTree = (rootNode().isShadowRoot() && !toShadowRoot(r ootNode()).isOpen()) ? this : nearestAncestorClosedTreeScopeEventContext;
119 for (size_t i = 0; i < m_children.size(); ++i) 124 for (size_t i = 0; i < m_children.size(); ++i)
120 orderNumber = m_children[i]->calculateTreeOrderAndSetNearestAncestorClos edTree(orderNumber + 1, containingClosedShadowTree()); 125 orderNumber = m_children[i]->calculateTreeOrderAndSetNearestAncestorClos edTree(orderNumber + 1, containingClosedShadowTree());
121 m_postOrder = orderNumber + 1; 126 m_postOrder = orderNumber + 1;
122 127
123 return orderNumber + 1; 128 return orderNumber + 1;
124 } 129 }
125 130
126 } // namespace blink 131 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/TreeScopeEventContext.h ('k') | third_party/WebKit/Source/core/fetch/DocumentResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698