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

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

Issue 1287623002: Delete blink code for scroll-blocks-on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk (no changes from previous patch) Created 5 years, 4 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
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/html.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/Source/core/css/ComputedStyleCSSValueMapping.cpp b/Source/core/css/ComputedStyleCSSValueMapping.cpp
index a01987a08007707275c5b9af054df2ca4ca30c90..debdea9d951bc69a18b66825e306ce9b696c3468 100644
--- a/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -656,23 +656,6 @@ static LayoutRect sizingBox(const LayoutObject* layoutObject)
return box->style()->boxSizing() == BORDER_BOX ? box->borderBoxRect() : box->computedCSSContentBoxRect();
}
-static PassRefPtrWillBeRawPtr<CSSValue> scrollBlocksOnFlagsToCSSValue(WebScrollBlocksOn scrollBlocksOn)
-{
- RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
-
- if (scrollBlocksOn == WebScrollBlocksOnNone)
- return cssValuePool().createIdentifierValue(CSSValueNone);
-
- if (scrollBlocksOn & WebScrollBlocksOnStartTouch)
- list->append(cssValuePool().createIdentifierValue(CSSValueStartTouch));
- if (scrollBlocksOn & WebScrollBlocksOnWheelEvent)
- list->append(cssValuePool().createIdentifierValue(CSSValueWheelEvent));
- if (scrollBlocksOn & WebScrollBlocksOnScrollEvent)
- list->append(cssValuePool().createIdentifierValue(CSSValueScrollEvent));
- ASSERT(list->length());
- return list.release();
-}
-
static PassRefPtrWillBeRawPtr<CSSValue> renderTextDecorationFlagsToCSSValue(int textDecoration)
{
// Blink value is ignored.
@@ -1936,8 +1919,6 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
return cssValuePool().createValue(style.rubyPosition());
case CSSPropertyScrollBehavior:
return cssValuePool().createValue(style.scrollBehavior());
- case CSSPropertyScrollBlocksOn:
- return scrollBlocksOnFlagsToCSSValue(style.scrollBlocksOn());
case CSSPropertyTableLayout:
return cssValuePool().createValue(style.tableLayout());
case CSSPropertyTextAlign:
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/html.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698