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

Unified Diff: sky/engine/core/css/CSSComputedStyleDeclaration.cpp

Issue 1076623002: Remove our impressive amount of CSS Cursor code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/CSSCursorImageValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSComputedStyleDeclaration.cpp
diff --git a/sky/engine/core/css/CSSComputedStyleDeclaration.cpp b/sky/engine/core/css/CSSComputedStyleDeclaration.cpp
index f1bc1a37dbc8ef0ec5dc905eb5b67e31b475a594..3fe146c2d4c00b86f28b0501e1d07f86c8ce119f 100644
--- a/sky/engine/core/css/CSSComputedStyleDeclaration.cpp
+++ b/sky/engine/core/css/CSSComputedStyleDeclaration.cpp
@@ -110,7 +110,6 @@ static const CSSPropertyID staticComputableProperties[] = {
CSSPropertyCaptionSide,
CSSPropertyClip,
CSSPropertyColor,
- CSSPropertyCursor,
CSSPropertyDirection,
CSSPropertyDisplay,
CSSPropertyEmptyCells,
@@ -1374,22 +1373,6 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
return cssValuePool().createColorValue(m_allowVisitedStyle ? style->colorIncludingFallback(CSSPropertyColor).rgb() : style->color().rgb());
case CSSPropertyTabSize:
return cssValuePool().createValue(style->tabSize(), CSSPrimitiveValue::CSS_NUMBER);
- case CSSPropertyCursor: {
- RefPtr<CSSValueList> list = nullptr;
- CursorList* cursors = style->cursors();
- if (cursors && cursors->size() > 0) {
- list = CSSValueList::createCommaSeparated();
- for (unsigned i = 0; i < cursors->size(); ++i)
- if (StyleImage* image = cursors->at(i).image())
- list->append(image->cssValue());
- }
- RefPtr<CSSValue> value = cssValuePool().createValue(style->cursor());
- if (list) {
- list->append(value.release());
- return list.release();
- }
- return value.release();
- }
case CSSPropertyDirection:
return cssValuePool().createValue(style->direction());
case CSSPropertyDisplay:
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/CSSCursorImageValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698