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

Unified Diff: Source/core/css/StylePropertySet.cpp

Issue 1183023003: Move (copy/remove)BlockProperties out of MutableStylePropertySet (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/StylePropertySet.cpp
diff --git a/Source/core/css/StylePropertySet.cpp b/Source/core/css/StylePropertySet.cpp
index 904c8159e852d4f1313e0557b4a4c0381b0b057f..2364aab3723bae729a278f0735df18a6aa268209 100644
--- a/Source/core/css/StylePropertySet.cpp
+++ b/Source/core/css/StylePropertySet.cpp
@@ -348,53 +348,11 @@ bool StylePropertySet::hasFailedOrCanceledSubresources() const
return false;
}
-// This is the list of properties we want to copy in the copyBlockProperties() function.
-// It is the list of CSS properties that apply specially to block-level elements.
-static const CSSPropertyID staticBlockProperties[] = {
- CSSPropertyOrphans,
- CSSPropertyOverflow, // This can be also be applied to replaced elements
- CSSPropertyWebkitColumnCount,
- CSSPropertyWebkitColumnGap,
- CSSPropertyWebkitColumnRuleColor,
- CSSPropertyWebkitColumnRuleStyle,
- CSSPropertyWebkitColumnRuleWidth,
- CSSPropertyWebkitColumnBreakBefore,
- CSSPropertyWebkitColumnBreakAfter,
- CSSPropertyWebkitColumnBreakInside,
- CSSPropertyWebkitColumnWidth,
- CSSPropertyPageBreakAfter,
- CSSPropertyPageBreakBefore,
- CSSPropertyPageBreakInside,
- CSSPropertyTextAlign,
- CSSPropertyTextAlignLast,
- CSSPropertyTextIndent,
- CSSPropertyTextJustify,
- CSSPropertyWidows
-};
-
-static const Vector<CSSPropertyID>& blockProperties()
-{
- DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
- if (properties.isEmpty())
- CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticBlockProperties, WTF_ARRAY_LENGTH(staticBlockProperties), properties);
- return properties;
-}
-
void MutableStylePropertySet::clear()
{
m_propertyVector.clear();
}
-PassRefPtrWillBeRawPtr<MutableStylePropertySet> StylePropertySet::copyBlockProperties() const
-{
- return copyPropertiesInSet(blockProperties());
-}
-
-void MutableStylePropertySet::removeBlockProperties()
-{
- removePropertiesInSet(blockProperties().data(), blockProperties().size());
-}
-
inline bool containsId(const CSSPropertyID* set, unsigned length, CSSPropertyID id)
{
for (unsigned i = 0; i < length; ++i) {

Powered by Google App Engine
This is Rietveld 408576698