| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 #include <wtf/MemoryInstrumentationHashSet.h> | 137 #include <wtf/MemoryInstrumentationHashSet.h> |
| 138 #include <wtf/MemoryInstrumentationVector.h> | 138 #include <wtf/MemoryInstrumentationVector.h> |
| 139 #include <wtf/StdLibExtras.h> | 139 #include <wtf/StdLibExtras.h> |
| 140 #include <wtf/Vector.h> | 140 #include <wtf/Vector.h> |
| 141 | 141 |
| 142 #if ENABLE(CSS_FILTERS) | 142 #if ENABLE(CSS_FILTERS) |
| 143 #include "FilterOperation.h" | 143 #include "FilterOperation.h" |
| 144 #include "WebKitCSSFilterValue.h" | 144 #include "WebKitCSSFilterValue.h" |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 #if ENABLE(DASHBOARD_SUPPORT) | |
| 148 #include "DashboardRegion.h" | |
| 149 #endif | |
| 150 | |
| 151 #if ENABLE(SVG) | 147 #if ENABLE(SVG) |
| 152 #include "CachedSVGDocument.h" | 148 #include "CachedSVGDocument.h" |
| 153 #include "CachedSVGDocumentReference.h" | 149 #include "CachedSVGDocumentReference.h" |
| 154 #include "SVGDocument.h" | 150 #include "SVGDocument.h" |
| 155 #include "SVGElement.h" | 151 #include "SVGElement.h" |
| 156 #include "SVGNames.h" | 152 #include "SVGNames.h" |
| 157 #include "SVGURIReference.h" | 153 #include "SVGURIReference.h" |
| 158 #include "WebKitCSSSVGDocumentValue.h" | 154 #include "WebKitCSSSVGDocumentValue.h" |
| 159 #endif | 155 #endif |
| 160 | 156 |
| (...skipping 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 return; | 2563 return; |
| 2568 if (primitiveValue->getIdent() == CSSValueAuto) | 2564 if (primitiveValue->getIdent() == CSSValueAuto) |
| 2569 state.style()->setLocale(nullAtom); | 2565 state.style()->setLocale(nullAtom); |
| 2570 else | 2566 else |
| 2571 state.style()->setLocale(primitiveValue->getStringValue()); | 2567 state.style()->setLocale(primitiveValue->getStringValue()); |
| 2572 FontDescription fontDescription = state.style()->fontDescription(); | 2568 FontDescription fontDescription = state.style()->fontDescription(); |
| 2573 fontDescription.setScript(localeToScriptCodeForFontSelection(state.style
()->locale())); | 2569 fontDescription.setScript(localeToScriptCodeForFontSelection(state.style
()->locale())); |
| 2574 setFontDescription(fontDescription); | 2570 setFontDescription(fontDescription); |
| 2575 return; | 2571 return; |
| 2576 } | 2572 } |
| 2577 #if ENABLE(DASHBOARD_SUPPORT) | |
| 2578 case CSSPropertyWebkitDashboardRegion: | |
| 2579 { | |
| 2580 HANDLE_INHERIT_AND_INITIAL(dashboardRegions, DashboardRegions) | |
| 2581 if (!primitiveValue) | |
| 2582 return; | |
| 2583 | |
| 2584 if (primitiveValue->getIdent() == CSSValueNone) { | |
| 2585 state.style()->setDashboardRegions(RenderStyle::noneDashboardRegions
()); | |
| 2586 return; | |
| 2587 } | |
| 2588 | |
| 2589 DashboardRegion* region = primitiveValue->getDashboardRegionValue(); | |
| 2590 if (!region) | |
| 2591 return; | |
| 2592 | |
| 2593 DashboardRegion* first = region; | |
| 2594 while (region) { | |
| 2595 Length top = convertToIntLength(region->top(), state.style(), state.
rootElementStyle()); | |
| 2596 Length right = convertToIntLength(region->right(), state.style(), st
ate.rootElementStyle()); | |
| 2597 Length bottom = convertToIntLength(region->bottom(), state.style(),
state.rootElementStyle()); | |
| 2598 Length left = convertToIntLength(region->left(), state.style(), stat
e.rootElementStyle()); | |
| 2599 | |
| 2600 if (top.isUndefined()) | |
| 2601 top = Length(); | |
| 2602 if (right.isUndefined()) | |
| 2603 right = Length(); | |
| 2604 if (bottom.isUndefined()) | |
| 2605 bottom = Length(); | |
| 2606 if (left.isUndefined()) | |
| 2607 left = Length(); | |
| 2608 | |
| 2609 if (region->m_isCircle) | |
| 2610 state.style()->setDashboardRegion(StyleDashboardRegion::Circle,
region->m_label, top, right, bottom, left, region == first ? false : true); | |
| 2611 else if (region->m_isRectangle) | |
| 2612 state.style()->setDashboardRegion(StyleDashboardRegion::Rectangl
e, region->m_label, top, right, bottom, left, region == first ? false : true); | |
| 2613 region = region->m_next.get(); | |
| 2614 } | |
| 2615 | |
| 2616 state.document()->setHasAnnotatedRegions(true); | |
| 2617 | |
| 2618 return; | |
| 2619 } | |
| 2620 #endif | |
| 2621 #if ENABLE(DRAGGABLE_REGION) | 2573 #if ENABLE(DRAGGABLE_REGION) |
| 2622 case CSSPropertyWebkitAppRegion: { | 2574 case CSSPropertyWebkitAppRegion: { |
| 2623 if (!primitiveValue || !primitiveValue->getIdent()) | 2575 if (!primitiveValue || !primitiveValue->getIdent()) |
| 2624 return; | 2576 return; |
| 2625 state.style()->setDraggableRegionMode(primitiveValue->getIdent() == CSSV
alueDrag ? DraggableRegionDrag : DraggableRegionNoDrag); | 2577 state.style()->setDraggableRegionMode(primitiveValue->getIdent() == CSSV
alueDrag ? DraggableRegionDrag : DraggableRegionNoDrag); |
| 2626 state.document()->setHasAnnotatedRegions(true); | 2578 state.document()->setHasAnnotatedRegions(true); |
| 2627 return; | 2579 return; |
| 2628 } | 2580 } |
| 2629 #endif | 2581 #endif |
| 2630 case CSSPropertyWebkitTextStrokeWidth: { | 2582 case CSSPropertyWebkitTextStrokeWidth: { |
| (...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4525 info.addMember(m_state, "state"); | 4477 info.addMember(m_state, "state"); |
| 4526 | 4478 |
| 4527 // FIXME: move this to a place where it would be called only once? | 4479 // FIXME: move this to a place where it would be called only once? |
| 4528 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); | 4480 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); |
| 4529 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); | 4481 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); |
| 4530 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle")
; | 4482 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle")
; |
| 4531 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); | 4483 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); |
| 4532 } | 4484 } |
| 4533 | 4485 |
| 4534 } // namespace WebCore | 4486 } // namespace WebCore |
| OLD | NEW |