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

Side by Side Diff: Source/core/css/resolver/FilterOperationResolver.cpp

Issue 23685007: Have SVGURIReference API deal with Document references, not pointers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 continue; 398 continue;
399 CSSValue* argument = filterValue->itemWithoutBoundsCheck(0); 399 CSSValue* argument = filterValue->itemWithoutBoundsCheck(0);
400 400
401 if (!argument->isCSSSVGDocumentValue()) 401 if (!argument->isCSSSVGDocumentValue())
402 continue; 402 continue;
403 403
404 CSSSVGDocumentValue* svgDocumentValue = static_cast<CSSSVGDocumentVa lue*>(argument); 404 CSSSVGDocumentValue* svgDocumentValue = static_cast<CSSSVGDocumentVa lue*>(argument);
405 KURL url = state.document().completeURL(svgDocumentValue->url()); 405 KURL url = state.document().completeURL(svgDocumentValue->url());
406 406
407 RefPtr<ReferenceFilterOperation> operation = ReferenceFilterOperatio n::create(svgDocumentValue->url(), url.fragmentIdentifier(), operationType); 407 RefPtr<ReferenceFilterOperation> operation = ReferenceFilterOperatio n::create(svgDocumentValue->url(), url.fragmentIdentifier(), operationType);
408 if (SVGURIReference::isExternalURIReference(svgDocumentValue->url(), &state.document())) { 408 if (SVGURIReference::isExternalURIReference(svgDocumentValue->url(), state.document())) {
409 if (!svgDocumentValue->loadRequested()) 409 if (!svgDocumentValue->loadRequested())
410 state.elementStyleResources().addPendingSVGDocument(operatio n.get(), svgDocumentValue); 410 state.elementStyleResources().addPendingSVGDocument(operatio n.get(), svgDocumentValue);
411 else if (svgDocumentValue->cachedSVGDocument()) 411 else if (svgDocumentValue->cachedSVGDocument())
412 operation->setDocumentResourceReference(adoptPtr(new Documen tResourceReference(svgDocumentValue->cachedSVGDocument()))); 412 operation->setDocumentResourceReference(adoptPtr(new Documen tResourceReference(svgDocumentValue->cachedSVGDocument())));
413 } 413 }
414 operations.operations().append(operation); 414 operations.operations().append(operation);
415 continue; 415 continue;
416 } 416 }
417 417
418 // Check that all parameters are primitive values, with the 418 // Check that all parameters are primitive values, with the
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 ASSERT_NOT_REACHED(); 499 ASSERT_NOT_REACHED();
500 break; 500 break;
501 } 501 }
502 } 502 }
503 503
504 outOperations = operations; 504 outOperations = operations;
505 return true; 505 return true;
506 } 506 }
507 507
508 } // namespace WebCore 508 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSCursorImageValue.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698