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

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: Rework patch after https://codereview.chromium.org/14324009 Created 7 years, 8 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
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 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 bool Document::cssCompositingEnabled() const 1104 bool Document::cssCompositingEnabled() const
1105 { 1105 {
1106 return RuntimeEnabledFeatures::cssCompositingEnabled(); 1106 return RuntimeEnabledFeatures::cssCompositingEnabled();
1107 } 1107 }
1108 1108
1109 bool Document::cssGridLayoutEnabled() const 1109 bool Document::cssGridLayoutEnabled() const
1110 { 1110 {
1111 return settings() && settings()->cssGridLayoutEnabled(); 1111 return settings() && settings()->cssGridLayoutEnabled();
1112 } 1112 }
1113 1113
1114 #if ENABLE(CSS_REGIONS)
1115
1116 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows() 1114 PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows()
1117 { 1115 {
1118 if (!cssRegionsEnabled() || !renderer()) 1116 if (!cssRegionsEnabled() || !renderer())
1119 return 0; 1117 return 0;
1120 1118
1121 updateStyleIfNeeded(); 1119 updateStyleIfNeeded();
1122 1120
1123 return namedFlows()->createCSSOMSnapshot(); 1121 return namedFlows()->createCSSOMSnapshot();
1124 } 1122 }
1125 1123
1126 #endif
1127
1128 NamedFlowCollection* Document::namedFlows() 1124 NamedFlowCollection* Document::namedFlows()
1129 { 1125 {
1130 if (!m_namedFlows) 1126 if (!m_namedFlows)
1131 m_namedFlows = NamedFlowCollection::create(this); 1127 m_namedFlows = NamedFlowCollection::create(this);
1132 1128
1133 return m_namedFlows.get(); 1129 return m_namedFlows.get();
1134 } 1130 }
1135 1131
1136 PassRefPtr<Element> Document::createElementNS(const String& namespaceURI, const String& qualifiedName, ExceptionCode& ec) 1132 PassRefPtr<Element> Document::createElementNS(const String& namespaceURI, const String& qualifiedName, ExceptionCode& ec)
1137 { 1133 {
(...skipping 4590 matching lines...) Expand 10 before | Expand all | Expand 10 after
5728 return; 5724 return;
5729 5725
5730 Vector<RefPtr<Element> > associatedFormControls; 5726 Vector<RefPtr<Element> > associatedFormControls;
5731 copyToVector(m_associatedFormControls, associatedFormControls); 5727 copyToVector(m_associatedFormControls, associatedFormControls);
5732 5728
5733 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls); 5729 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm Controls);
5734 m_associatedFormControls.clear(); 5730 m_associatedFormControls.clear();
5735 } 5731 }
5736 5732
5737 } // namespace WebCore 5733 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698