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

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

Issue 14178009: Remove CSS_REGIONS compile flag from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New version Created 7 years, 7 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 | « Source/core/dom/Element.idl ('k') | Source/core/dom/NamedFlow.idl » ('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 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 12 matching lines...) Expand all
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE. 27 * SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "core/dom/NamedFlow.h" 31 #include "core/dom/NamedFlow.h"
32 32
33 #include "RuntimeEnabledFeatures.h"
33 #include "core/dom/EventNames.h" 34 #include "core/dom/EventNames.h"
34 #include "core/dom/NamedFlowCollection.h" 35 #include "core/dom/NamedFlowCollection.h"
35 #include "core/dom/ScriptExecutionContext.h" 36 #include "core/dom/ScriptExecutionContext.h"
36 #include "core/dom/StaticNodeList.h" 37 #include "core/dom/StaticNodeList.h"
37 #include "core/dom/UIEvent.h" 38 #include "core/dom/UIEvent.h"
38 #include "core/rendering/RenderNamedFlowThread.h" 39 #include "core/rendering/RenderNamedFlowThread.h"
39 #include "core/rendering/RenderRegion.h" 40 #include "core/rendering/RenderRegion.h"
40 41
41 namespace WebCore { 42 namespace WebCore {
42 43
43 NamedFlow::NamedFlow(PassRefPtr<NamedFlowCollection> manager, const AtomicString & flowThreadName) 44 NamedFlow::NamedFlow(PassRefPtr<NamedFlowCollection> manager, const AtomicString & flowThreadName)
44 : m_flowThreadName(flowThreadName) 45 : m_flowThreadName(flowThreadName)
45 , m_flowManager(manager) 46 , m_flowManager(manager)
46 , m_parentFlowThread(0) 47 , m_parentFlowThread(0)
47 { 48 {
49 ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled());
48 } 50 }
49 51
50 NamedFlow::~NamedFlow() 52 NamedFlow::~NamedFlow()
51 { 53 {
52 // The named flow is not "strong" referenced from anywhere at this time so i t shouldn't be reused if the named flow is recreated. 54 // The named flow is not "strong" referenced from anywhere at this time so i t shouldn't be reused if the named flow is recreated.
53 m_flowManager->discardNamedFlow(this); 55 m_flowManager->discardNamedFlow(this);
54 } 56 }
55 57
56 PassRefPtr<NamedFlow> NamedFlow::create(PassRefPtr<NamedFlowCollection> manager, const AtomicString& flowThreadName) 58 PassRefPtr<NamedFlow> NamedFlow::create(PassRefPtr<NamedFlowCollection> manager, const AtomicString& flowThreadName)
57 { 59 {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 return m_flowManager->document(); 227 return m_flowManager->document();
226 } 228 }
227 229
228 Node* NamedFlow::ownerNode() const 230 Node* NamedFlow::ownerNode() const
229 { 231 {
230 return m_flowManager->document(); 232 return m_flowManager->document();
231 } 233 }
232 234
233 } // namespace WebCore 235 } // namespace WebCore
234 236
OLDNEW
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/dom/NamedFlow.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698