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

Side by Side Diff: Source/core/dom/Document.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/Document.h ('k') | Source/core/dom/Document.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) 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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 bool Document::regionBasedColumnsEnabled() const 1091 bool Document::regionBasedColumnsEnabled() const
1092 { 1092 {
1093 return settings() && settings()->regionBasedColumnsEnabled(); 1093 return settings() && settings()->regionBasedColumnsEnabled();
1094 } 1094 }
1095 1095
1096 bool Document::cssStickyPositionEnabled() const 1096 bool Document::cssStickyPositionEnabled() const
1097 { 1097 {
1098 return settings() && settings()->cssStickyPositionEnabled(); 1098 return settings() && settings()->cssStickyPositionEnabled();
1099 } 1099 }
1100 1100
1101 bool Document::cssRegionsEnabled() const
1102 {
1103 return RuntimeEnabledFeatures::cssRegionsEnabled();
1104 }
1105
1106 bool Document::cssCompositingEnabled() const 1101 bool Document::cssCompositingEnabled() const
1107 { 1102 {
1108 return RuntimeEnabledFeatures::cssCompositingEnabled(); 1103 return RuntimeEnabledFeatures::cssCompositingEnabled();
1109 } 1104 }
1110 1105
1111 bool Document::cssGridLayoutEnabled() const 1106 bool Document::cssGridLayoutEnabled() const
1112 { 1107 {
1113 return settings() && settings()->cssGridLayoutEnabled(); 1108 return settings() && settings()->cssGridLayoutEnabled();
1114 } 1109 }
1115 1110
1116 #if ENABLE(CSS_REGIONS)
1117
1118 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows() 1111 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows()
1119 { 1112 {
1120 if (!cssRegionsEnabled() || !renderer()) 1113 if (!RuntimeEnabledFeatures::cssRegionsEnabled() || !renderer())
1121 return 0; 1114 return 0;
1122 1115
1123 updateStyleIfNeeded(); 1116 updateStyleIfNeeded();
1124 1117
1125 return namedFlows()->createCSSOMSnapshot(); 1118 return namedFlows()->createCSSOMSnapshot();
1126 } 1119 }
1127 1120
1128 #endif
1129
1130 NamedFlowCollection* Document::namedFlows() 1121 NamedFlowCollection* Document::namedFlows()
1131 { 1122 {
1132 if (!m_namedFlows) 1123 if (!m_namedFlows)
1133 m_namedFlows = NamedFlowCollection::create(this); 1124 m_namedFlows = NamedFlowCollection::create(this);
1134 1125
1135 return m_namedFlows.get(); 1126 return m_namedFlows.get();
1136 } 1127 }
1137 1128
1138 PassRefPtr<Element> Document::createElementNS(const String& namespaceURI, const String& qualifiedName, ExceptionCode& ec) 1129 PassRefPtr<Element> Document::createElementNS(const String& namespaceURI, const String& qualifiedName, ExceptionCode& ec)
1139 { 1130 {
(...skipping 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after
5663 return; 5654 return;
5664 5655
5665 Vector<RefPtr<Element> > associatedFormControls; 5656 Vector<RefPtr<Element> > associatedFormControls;
5666 copyToVector(m_associatedFormControls, associatedFormControls); 5657 copyToVector(m_associatedFormControls, associatedFormControls);
5667 5658
5668 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls); 5659 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls);
5669 m_associatedFormControls.clear(); 5660 m_associatedFormControls.clear();
5670 } 5661 }
5671 5662
5672 } // namespace WebCore 5663 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698