| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 
| 3  * Copyright (C) 2013 Apple Inc. All rights reserved. | 3  * Copyright (C) 2013 Apple Inc. All rights reserved. | 
| 4  * | 4  * | 
| 5  * Redistribution and use in source and binary forms, with or without | 5  * Redistribution and use in source and binary forms, with or without | 
| 6  * modification, are permitted provided that the following conditions | 6  * modification, are permitted provided that the following conditions | 
| 7  * are met: | 7  * are met: | 
| 8  * | 8  * | 
| 9  * 1.  Redistributions of source code must retain the above copyright | 9  * 1.  Redistributions of source code must retain the above copyright | 
| 10  *     notice, this list of conditions and the following disclaimer. | 10  *     notice, this list of conditions and the following disclaimer. | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
| 40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" | 
| 41 | 41 | 
| 42 namespace blink { | 42 namespace blink { | 
| 43 | 43 | 
| 44 class Document; | 44 class Document; | 
| 45 class ExceptionState; | 45 class ExceptionState; | 
| 46 class LocalFrame; | 46 class LocalFrame; | 
| 47 class Page; | 47 class Page; | 
| 48 class Settings; | 48 class Settings; | 
| 49 | 49 | 
| 50 #if ENABLE(OILPAN) | 50 class InternalSettings final : public InternalSettingsGenerated, public Suppleme
     nt<Page> { | 
| 51 class InternalSettings final : public InternalSettingsGenerated, public HeapSupp
     lement<Page> { |  | 
| 52     USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); | 51     USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); | 
| 53 #else |  | 
| 54 class InternalSettings final : public InternalSettingsGenerated { |  | 
| 55 #endif |  | 
| 56     DEFINE_WRAPPERTYPEINFO(); | 52     DEFINE_WRAPPERTYPEINFO(); | 
| 57 public: | 53 public: | 
| 58     class Backup { | 54     class Backup { | 
| 59         DISALLOW_NEW(); | 55         DISALLOW_NEW(); | 
| 60     public: | 56     public: | 
| 61         explicit Backup(Settings*); | 57         explicit Backup(Settings*); | 
| 62         void restoreTo(Settings*); | 58         void restoreTo(Settings*); | 
| 63 | 59 | 
| 64         bool m_originalCSP; | 60         bool m_originalCSP; | 
| 65         bool m_originalCSSStickyPositionEnabled; | 61         bool m_originalCSSStickyPositionEnabled; | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 81         bool m_originalScrollTopLeftInteropEnabled; | 77         bool m_originalScrollTopLeftInteropEnabled; | 
| 82         bool m_originalCompositorWorkerEnabled; | 78         bool m_originalCompositorWorkerEnabled; | 
| 83     }; | 79     }; | 
| 84 | 80 | 
| 85     static RawPtr<InternalSettings> create(Page& page) | 81     static RawPtr<InternalSettings> create(Page& page) | 
| 86     { | 82     { | 
| 87         return new InternalSettings(page); | 83         return new InternalSettings(page); | 
| 88     } | 84     } | 
| 89     static InternalSettings* from(Page&); | 85     static InternalSettings* from(Page&); | 
| 90 | 86 | 
| 91 #if !ENABLE(OILPAN) |  | 
| 92     void hostDestroyed() { m_page = nullptr; } |  | 
| 93 #endif |  | 
| 94 |  | 
| 95     ~InternalSettings() override; | 87     ~InternalSettings() override; | 
| 96     void resetToConsistentState(); | 88     void resetToConsistentState(); | 
| 97 | 89 | 
| 98     void setStandardFontFamily(const AtomicString& family, const String& script,
      ExceptionState&); | 90     void setStandardFontFamily(const AtomicString& family, const String& script,
      ExceptionState&); | 
| 99     void setSerifFontFamily(const AtomicString& family, const String& script, Ex
     ceptionState&); | 91     void setSerifFontFamily(const AtomicString& family, const String& script, Ex
     ceptionState&); | 
| 100     void setSansSerifFontFamily(const AtomicString& family, const String& script
     , ExceptionState&); | 92     void setSansSerifFontFamily(const AtomicString& family, const String& script
     , ExceptionState&); | 
| 101     void setFixedFontFamily(const AtomicString& family, const String& script, Ex
     ceptionState&); | 93     void setFixedFontFamily(const AtomicString& family, const String& script, Ex
     ceptionState&); | 
| 102     void setCursiveFontFamily(const AtomicString& family, const String& script, 
     ExceptionState&); | 94     void setCursiveFontFamily(const AtomicString& family, const String& script, 
     ExceptionState&); | 
| 103     void setFantasyFontFamily(const AtomicString& family, const String& script, 
     ExceptionState&); | 95     void setFantasyFontFamily(const AtomicString& family, const String& script, 
     ExceptionState&); | 
| 104     void setPictographFontFamily(const AtomicString& family, const String& scrip
     t, ExceptionState&); | 96     void setPictographFontFamily(const AtomicString& family, const String& scrip
     t, ExceptionState&); | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 146     Page* page() const { return m_page; } | 138     Page* page() const { return m_page; } | 
| 147     static const char* supplementName(); | 139     static const char* supplementName(); | 
| 148 | 140 | 
| 149     WeakMember<Page> m_page; | 141     WeakMember<Page> m_page; | 
| 150     Backup m_backup; | 142     Backup m_backup; | 
| 151 }; | 143 }; | 
| 152 | 144 | 
| 153 } // namespace blink | 145 } // namespace blink | 
| 154 | 146 | 
| 155 #endif // InternalSettings_h | 147 #endif // InternalSettings_h | 
| OLD | NEW | 
|---|