1e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)/*
2e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *           (C) 1999 Antti Koivisto (koivisto@kde.org)
4e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *           (C) 2001 Dirk Mueller (mueller@kde.org)
5e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *           (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
7e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
8e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Copyright (C) 2013 Google Inc. All rights reserved.
10e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *
11e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * This library is free software; you can redistribute it and/or
12e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * modify it under the terms of the GNU Library General Public
13e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * License as published by the Free Software Foundation; either
14e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * version 2 of the License, or (at your option) any later version.
15e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *
16e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * This library is distributed in the hope that it will be useful,
17e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of
18e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Library General Public License for more details.
20e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *
21e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * You should have received a copy of the GNU Library General Public License
22e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * along with this library; see the file COPYING.LIB.  If not, write to
23e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * Boston, MA 02110-1301, USA.
25e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) *
26e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) */
27e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
28e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)#ifndef ShadowTreeStyleSheetCollection_h
29e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)#define ShadowTreeStyleSheetCollection_h
30e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
3109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)#include "core/dom/TreeScopeStyleSheetCollection.h"
32e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
33c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink {
34e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
35e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)class ShadowRoot;
36e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)class StyleSheetCollection;
379bbd2f5e390b01907d97ecffde80aa1b06113aacTorne (Richard Coles)class StyleEngine;
38e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
3909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)class ShadowTreeStyleSheetCollection FINAL : public TreeScopeStyleSheetCollection {
4043e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)    WTF_MAKE_NONCOPYABLE(ShadowTreeStyleSheetCollection);
4143e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)    WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
42e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)public:
438abfc5808a4e34d6e03867af8bc440dee641886fTorne (Richard Coles)    explicit ShadowTreeStyleSheetCollection(ShadowRoot&);
44e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
455d92fedcae5e801a8b224de090094f2d9df0b54aTorne (Richard Coles)    void updateActiveStyleSheets(StyleEngine*, StyleResolverUpdateMode);
46e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
4743e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)    virtual void trace(Visitor* visitor) OVERRIDE
4843e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)    {
4943e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)        TreeScopeStyleSheetCollection::trace(visitor);
5043e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)    }
5143e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles)
52e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)private:
5309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    void collectStyleSheets(StyleEngine*, StyleSheetCollection&);
54e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)};
55e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
56e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)}
57e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
58e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)#endif
59e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
60