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

Unified Diff: Source/WebCore/css/CSSComputedStyleDeclaration.cpp

Issue 13650009: Remove Dashboard support and supporting files. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compiler error due to misspelling in code "Dashbard" Created 7 years, 9 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/WebCore/WebCore.gypi ('k') | Source/WebCore/css/CSSParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/CSSComputedStyleDeclaration.cpp
diff --git a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
index 3f101e4ba33d5cfd347c12bea0e5e3b6d80db52c..95c17117c1fb66d48aa08b7875a50972eab5cea6 100644
--- a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
+++ b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
@@ -85,10 +85,6 @@
#include "WebKitCSSFilterValue.h"
#endif
-#if ENABLE(DASHBOARD_SUPPORT)
-#include "DashboardRegion.h"
-#endif
-
namespace WebCore {
// List of all properties we know how to compute, omitting shorthands.
@@ -268,9 +264,6 @@ static const CSSPropertyID computedProperties[] = {
#if ENABLE(CURSOR_VISIBILITY)
CSSPropertyWebkitCursorVisibility,
#endif
-#if ENABLE(DASHBOARD_SUPPORT)
- CSSPropertyWebkitDashboardRegion,
-#endif
#if ENABLE(CSS_FILTERS)
CSSPropertyWebkitFilter,
#endif
@@ -2309,38 +2302,6 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
if (style->boxSizing() == CONTENT_BOX)
return cssValuePool().createIdentifierValue(CSSValueContentBox);
return cssValuePool().createIdentifierValue(CSSValueBorderBox);
-#if ENABLE(DASHBOARD_SUPPORT)
- case CSSPropertyWebkitDashboardRegion:
- {
- const Vector<StyleDashboardRegion>& regions = style->dashboardRegions();
- unsigned count = regions.size();
- if (count == 1 && regions[0].type == StyleDashboardRegion::None)
- return cssValuePool().createIdentifierValue(CSSValueNone);
-
- RefPtr<DashboardRegion> firstRegion;
- DashboardRegion* previousRegion = 0;
- for (unsigned i = 0; i < count; i++) {
- RefPtr<DashboardRegion> region = DashboardRegion::create();
- StyleDashboardRegion styleRegion = regions[i];
-
- region->m_label = styleRegion.label;
- LengthBox offset = styleRegion.offset;
- region->setTop(zoomAdjustedPixelValue(offset.top().value(), style.get()));
- region->setRight(zoomAdjustedPixelValue(offset.right().value(), style.get()));
- region->setBottom(zoomAdjustedPixelValue(offset.bottom().value(), style.get()));
- region->setLeft(zoomAdjustedPixelValue(offset.left().value(), style.get()));
- region->m_isRectangle = (styleRegion.type == StyleDashboardRegion::Rectangle);
- region->m_isCircle = (styleRegion.type == StyleDashboardRegion::Circle);
-
- if (previousRegion)
- previousRegion->m_next = region;
- else
- firstRegion = region;
- previousRegion = region.get();
- }
- return cssValuePool().createValue(firstRegion.release());
- }
-#endif
#if ENABLE(DRAGGABLE_REGION)
case CSSPropertyWebkitAppRegion:
return cssValuePool().createIdentifierValue(style->getDraggableRegionMode() == DraggableRegionDrag ? CSSValueDrag : CSSValueNoDrag);
« no previous file with comments | « Source/WebCore/WebCore.gypi ('k') | Source/WebCore/css/CSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698