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

Unified Diff: Source/WebCore/css/StyleResolver.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/css/DashboardRegion.h ('k') | Source/WebCore/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/StyleResolver.cpp
diff --git a/Source/WebCore/css/StyleResolver.cpp b/Source/WebCore/css/StyleResolver.cpp
index 20231cd163ecfa1b467de1955a136c39c8638ae0..d7108253751bad9610c1b57aeb0f2b919c2aa233 100644
--- a/Source/WebCore/css/StyleResolver.cpp
+++ b/Source/WebCore/css/StyleResolver.cpp
@@ -144,10 +144,6 @@
#include "WebKitCSSFilterValue.h"
#endif
-#if ENABLE(DASHBOARD_SUPPORT)
-#include "DashboardRegion.h"
-#endif
-
#if ENABLE(SVG)
#include "CachedSVGDocument.h"
#include "CachedSVGDocumentReference.h"
@@ -2574,50 +2570,6 @@ void StyleResolver::applyProperty(CSSPropertyID id, CSSValue* value)
setFontDescription(fontDescription);
return;
}
-#if ENABLE(DASHBOARD_SUPPORT)
- case CSSPropertyWebkitDashboardRegion:
- {
- HANDLE_INHERIT_AND_INITIAL(dashboardRegions, DashboardRegions)
- if (!primitiveValue)
- return;
-
- if (primitiveValue->getIdent() == CSSValueNone) {
- state.style()->setDashboardRegions(RenderStyle::noneDashboardRegions());
- return;
- }
-
- DashboardRegion* region = primitiveValue->getDashboardRegionValue();
- if (!region)
- return;
-
- DashboardRegion* first = region;
- while (region) {
- Length top = convertToIntLength(region->top(), state.style(), state.rootElementStyle());
- Length right = convertToIntLength(region->right(), state.style(), state.rootElementStyle());
- Length bottom = convertToIntLength(region->bottom(), state.style(), state.rootElementStyle());
- Length left = convertToIntLength(region->left(), state.style(), state.rootElementStyle());
-
- if (top.isUndefined())
- top = Length();
- if (right.isUndefined())
- right = Length();
- if (bottom.isUndefined())
- bottom = Length();
- if (left.isUndefined())
- left = Length();
-
- if (region->m_isCircle)
- state.style()->setDashboardRegion(StyleDashboardRegion::Circle, region->m_label, top, right, bottom, left, region == first ? false : true);
- else if (region->m_isRectangle)
- state.style()->setDashboardRegion(StyleDashboardRegion::Rectangle, region->m_label, top, right, bottom, left, region == first ? false : true);
- region = region->m_next.get();
- }
-
- state.document()->setHasAnnotatedRegions(true);
-
- return;
- }
-#endif
#if ENABLE(DRAGGABLE_REGION)
case CSSPropertyWebkitAppRegion: {
if (!primitiveValue || !primitiveValue->getIdent())
« no previous file with comments | « Source/WebCore/css/DashboardRegion.h ('k') | Source/WebCore/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698