| Index: Source/core/css/WebKitCSSSVGDocumentValue.cpp
|
| diff --git a/Source/core/css/WebKitCSSSVGDocumentValue.cpp b/Source/core/css/WebKitCSSSVGDocumentValue.cpp
|
| deleted file mode 100644
|
| index a7afd99d447b23a482f15b339dbfae273cd6db12..0000000000000000000000000000000000000000
|
| --- a/Source/core/css/WebKitCSSSVGDocumentValue.cpp
|
| +++ /dev/null
|
| @@ -1,81 +0,0 @@
|
| -/*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| - *
|
| - * Redistribution and use in source and binary forms, with or without
|
| - * modification, are permitted provided that the following conditions
|
| - * are met:
|
| - * 1. Redistributions of source code must retain the above copyright
|
| - * notice, this list of conditions and the following disclaimer.
|
| - * 2. Redistributions in binary form must reproduce the above copyright
|
| - * notice, this list of conditions and the following disclaimer in the
|
| - * documentation and/or other materials provided with the distribution.
|
| - *
|
| - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
|
| - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
|
| - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| - */
|
| -
|
| -#include "config.h"
|
| -
|
| -#include "core/css/WebKitCSSSVGDocumentValue.h"
|
| -
|
| -#include "core/css/CSSParser.h"
|
| -#include "core/dom/Document.h"
|
| -#include "core/dom/WebCoreMemoryInstrumentation.h"
|
| -#include "core/loader/cache/CachedDocument.h"
|
| -#include "core/loader/cache/CachedResourceLoader.h"
|
| -#include "core/loader/cache/CachedResourceRequest.h"
|
| -#include "core/loader/cache/CachedResourceRequestInitiators.h"
|
| -
|
| -namespace WebCore {
|
| -
|
| -WebKitCSSSVGDocumentValue::WebKitCSSSVGDocumentValue(const String& url)
|
| - : CSSValue(WebKitCSSSVGDocumentClass)
|
| - , m_url(url)
|
| - , m_loadRequested(false)
|
| -{
|
| -}
|
| -
|
| -WebKitCSSSVGDocumentValue::~WebKitCSSSVGDocumentValue()
|
| -{
|
| -}
|
| -
|
| -CachedDocument* WebKitCSSSVGDocumentValue::load(CachedResourceLoader* loader)
|
| -{
|
| - ASSERT(loader);
|
| -
|
| - if (!m_loadRequested) {
|
| - m_loadRequested = true;
|
| -
|
| - CachedResourceRequest request(ResourceRequest(loader->document()->completeURL(m_url)), cachedResourceRequestInitiators().css);
|
| - m_document = loader->requestSVGDocument(request);
|
| - }
|
| -
|
| - return m_document.get();
|
| -}
|
| -
|
| -String WebKitCSSSVGDocumentValue::customCssText() const
|
| -{
|
| - return quoteCSSStringIfNeeded(m_url);
|
| -}
|
| -
|
| -bool WebKitCSSSVGDocumentValue::equals(const WebKitCSSSVGDocumentValue& other) const
|
| -{
|
| - return m_url == other.m_url;
|
| -}
|
| -
|
| -void WebKitCSSSVGDocumentValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
|
| -{
|
| - MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
|
| - info.addMember(m_url, "url");
|
| - // FIXME: add m_document when cached resources are instrumented.
|
| -}
|
| -
|
| -} // namespace WebCore
|
|
|