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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 #include "FilterOperation.h" | 132 #include "FilterOperation.h" |
133 #include "WebKitCSSFilterValue.h" | 133 #include "WebKitCSSFilterValue.h" |
134 #endif | 134 #endif |
135 | 135 |
136 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(WIDGET_REGION) | 136 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(WIDGET_REGION) |
137 #include "DashboardRegion.h" | 137 #include "DashboardRegion.h" |
138 #endif | 138 #endif |
139 | 139 |
140 #if ENABLE(SVG) | 140 #if ENABLE(SVG) |
141 #include "CachedSVGDocument.h" | 141 #include "CachedSVGDocument.h" |
| 142 #include "CachedSVGDocumentReference.h" |
142 #include "SVGDocument.h" | 143 #include "SVGDocument.h" |
143 #include "SVGElement.h" | 144 #include "SVGElement.h" |
144 #include "SVGNames.h" | 145 #include "SVGNames.h" |
145 #include "SVGURIReference.h" | 146 #include "SVGURIReference.h" |
146 #include "WebKitCSSSVGDocumentValue.h" | 147 #include "WebKitCSSSVGDocumentValue.h" |
147 #endif | 148 #endif |
148 | 149 |
149 #if ENABLE(CSS_SHADERS) | 150 #if ENABLE(CSS_SHADERS) |
150 #include "CustomFilterArrayParameter.h" | 151 #include "CustomFilterArrayParameter.h" |
151 #include "CustomFilterNumberParameter.h" | 152 #include "CustomFilterNumberParameter.h" |
(...skipping 5039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5191 ReferenceFilterOperation* referenceFilter = static_cast<ReferenceFil
terOperation*>(filterOperation.get()); | 5192 ReferenceFilterOperation* referenceFilter = static_cast<ReferenceFil
terOperation*>(filterOperation.get()); |
5192 | 5193 |
5193 WebKitCSSSVGDocumentValue* value = m_pendingSVGDocuments.get(referen
ceFilter); | 5194 WebKitCSSSVGDocumentValue* value = m_pendingSVGDocuments.get(referen
ceFilter); |
5194 if (!value) | 5195 if (!value) |
5195 continue; | 5196 continue; |
5196 CachedSVGDocument* cachedDocument = value->load(cachedResourceLoader
); | 5197 CachedSVGDocument* cachedDocument = value->load(cachedResourceLoader
); |
5197 if (!cachedDocument) | 5198 if (!cachedDocument) |
5198 continue; | 5199 continue; |
5199 | 5200 |
5200 // Stash the CachedSVGDocument on the reference filter. | 5201 // Stash the CachedSVGDocument on the reference filter. |
5201 referenceFilter->setData(cachedDocument); | 5202 referenceFilter->setData(adoptPtr(new CachedSVGDocumentReference(cac
hedDocument))); |
5202 } | 5203 } |
5203 } | 5204 } |
5204 m_pendingSVGDocuments.clear(); | 5205 m_pendingSVGDocuments.clear(); |
5205 } | 5206 } |
5206 #endif | 5207 #endif |
5207 | 5208 |
5208 #if ENABLE(CSS_SHADERS) | 5209 #if ENABLE(CSS_SHADERS) |
5209 StyleShader* StyleResolver::styleShader(CSSValue* value) | 5210 StyleShader* StyleResolver::styleShader(CSSValue* value) |
5210 { | 5211 { |
5211 if (value->isWebKitCSSShaderValue()) | 5212 if (value->isWebKitCSSShaderValue()) |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5526 continue; | 5527 continue; |
5527 | 5528 |
5528 WebKitCSSSVGDocumentValue* svgDocumentValue = static_cast<WebKitCSSS
VGDocumentValue*>(argument); | 5529 WebKitCSSSVGDocumentValue* svgDocumentValue = static_cast<WebKitCSSS
VGDocumentValue*>(argument); |
5529 KURL url = m_element->document()->completeURL(svgDocumentValue->url(
)); | 5530 KURL url = m_element->document()->completeURL(svgDocumentValue->url(
)); |
5530 | 5531 |
5531 RefPtr<ReferenceFilterOperation> operation = ReferenceFilterOperatio
n::create(svgDocumentValue->url(), url.fragmentIdentifier(), operationType); | 5532 RefPtr<ReferenceFilterOperation> operation = ReferenceFilterOperatio
n::create(svgDocumentValue->url(), url.fragmentIdentifier(), operationType); |
5532 if (SVGURIReference::isExternalURIReference(svgDocumentValue->url(),
m_element->document())) { | 5533 if (SVGURIReference::isExternalURIReference(svgDocumentValue->url(),
m_element->document())) { |
5533 if (!svgDocumentValue->loadRequested()) | 5534 if (!svgDocumentValue->loadRequested()) |
5534 m_pendingSVGDocuments.set(operation.get(), svgDocumentValue)
; | 5535 m_pendingSVGDocuments.set(operation.get(), svgDocumentValue)
; |
5535 else | 5536 else |
5536 operation->setData(svgDocumentValue->cachedSVGDocument()); | 5537 operation->setData(adoptPtr(new CachedSVGDocumentReference(s
vgDocumentValue->cachedSVGDocument()))); |
5537 } | 5538 } |
5538 operations.operations().append(operation); | 5539 operations.operations().append(operation); |
5539 #endif | 5540 #endif |
5540 continue; | 5541 continue; |
5541 } | 5542 } |
5542 | 5543 |
5543 // Check that all parameters are primitive values, with the | 5544 // Check that all parameters are primitive values, with the |
5544 // exception of drop shadow which has a ShadowValue parameter. | 5545 // exception of drop shadow which has a ShadowValue parameter. |
5545 if (operationType != FilterOperation::DROP_SHADOW) { | 5546 if (operationType != FilterOperation::DROP_SHADOW) { |
5546 bool haveNonPrimitiveValue = false; | 5547 bool haveNonPrimitiveValue = false; |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5805 #endif | 5806 #endif |
5806 | 5807 |
5807 // FIXME: move this to a place where it would be called only once? | 5808 // FIXME: move this to a place where it would be called only once? |
5808 info.addMember(defaultStyle); | 5809 info.addMember(defaultStyle); |
5809 info.addMember(defaultQuirksStyle); | 5810 info.addMember(defaultQuirksStyle); |
5810 info.addMember(defaultPrintStyle); | 5811 info.addMember(defaultPrintStyle); |
5811 info.addMember(defaultViewSourceStyle); | 5812 info.addMember(defaultViewSourceStyle); |
5812 } | 5813 } |
5813 | 5814 |
5814 } // namespace WebCore | 5815 } // namespace WebCore |
OLD | NEW |