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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 if (filterValue->length() != 1) | 100 if (filterValue->length() != 1) |
101 continue; | 101 continue; |
102 CSSValue* argument = filterValue->item(0); | 102 CSSValue* argument = filterValue->item(0); |
103 | 103 |
104 if (!argument->isSVGDocumentValue()) | 104 if (!argument->isSVGDocumentValue()) |
105 continue; | 105 continue; |
106 | 106 |
107 CSSSVGDocumentValue* svgDocumentValue = toCSSSVGDocumentValue(argume
nt); | 107 CSSSVGDocumentValue* svgDocumentValue = toCSSSVGDocumentValue(argume
nt); |
108 KURL url = state.document().completeURL(svgDocumentValue->url()); | 108 KURL url = state.document().completeURL(svgDocumentValue->url()); |
109 | 109 |
110 RefPtr<ReferenceFilterOperation> operation = ReferenceFilterOperatio
n::create(svgDocumentValue->url(), AtomicString(url.fragmentIdentifier())); | 110 RefPtrWillBeRawPtr<ReferenceFilterOperation> operation = ReferenceFi
lterOperation::create(svgDocumentValue->url(), AtomicString(url.fragmentIdentifi
er())); |
111 if (SVGURIReference::isExternalURIReference(svgDocumentValue->url(),
state.document())) { | 111 if (SVGURIReference::isExternalURIReference(svgDocumentValue->url(),
state.document())) { |
112 if (!svgDocumentValue->loadRequested()) | 112 if (!svgDocumentValue->loadRequested()) |
113 state.elementStyleResources().addPendingSVGDocument(operatio
n.get(), svgDocumentValue); | 113 state.elementStyleResources().addPendingSVGDocument(operatio
n.get(), svgDocumentValue); |
114 else if (svgDocumentValue->cachedSVGDocument()) | 114 else if (svgDocumentValue->cachedSVGDocument()) |
115 ReferenceFilterBuilder::setDocumentResourceReference(operati
on.get(), adoptPtr(new DocumentResourceReference(svgDocumentValue->cachedSVGDocu
ment()))); | 115 ReferenceFilterBuilder::setDocumentResourceReference(operati
on.get(), adoptPtr(new DocumentResourceReference(svgDocumentValue->cachedSVGDocu
ment()))); |
116 } | 116 } |
117 operations.operations().append(operation); | 117 operations.operations().append(operation); |
118 continue; | 118 continue; |
119 } | 119 } |
120 | 120 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ASSERT_NOT_REACHED(); | 199 ASSERT_NOT_REACHED(); |
200 break; | 200 break; |
201 } | 201 } |
202 } | 202 } |
203 | 203 |
204 outOperations = operations; | 204 outOperations = operations; |
205 return true; | 205 return true; |
206 } | 206 } |
207 | 207 |
208 } // namespace blink | 208 } // namespace blink |
OLD | NEW |