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

Side by Side Diff: Source/core/testing/InternalSettings.h

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 7 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) 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 25 matching lines...) Expand all
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class Document; 40 class Document;
41 class ExceptionState; 41 class ExceptionState;
42 class LocalFrame; 42 class LocalFrame;
43 class Page; 43 class Page;
44 class Settings; 44 class Settings;
45 45
46 #if ENABLE(OILPAN)
47 class InternalSettings FINAL : public InternalSettingsGenerated, public HeapSupp lement<Page> {
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings);
49 #else
46 class InternalSettings FINAL : public InternalSettingsGenerated { 50 class InternalSettings FINAL : public InternalSettingsGenerated {
51 #endif
47 public: 52 public:
48 class Backup { 53 class Backup {
49 public: 54 public:
50 explicit Backup(Settings*); 55 explicit Backup(Settings*);
51 void restoreTo(Settings*); 56 void restoreTo(Settings*);
52 57
53 bool m_originalCSSExclusionsEnabled; 58 bool m_originalCSSExclusionsEnabled;
54 bool m_originalAuthorShadowDOMForAnyElementEnabled; 59 bool m_originalAuthorShadowDOMForAnyElementEnabled;
55 bool m_originalStyleScoped; 60 bool m_originalStyleScoped;
56 bool m_originalCSP; 61 bool m_originalCSP;
(...skipping 10 matching lines...) Expand all
67 bool m_originalCompositorDrivenAcceleratedScrollEnabled; 72 bool m_originalCompositorDrivenAcceleratedScrollEnabled;
68 bool m_originalLayerSquashingEnabled; 73 bool m_originalLayerSquashingEnabled;
69 bool m_originalPasswordGenerationDecorationEnabled; 74 bool m_originalPasswordGenerationDecorationEnabled;
70 }; 75 };
71 76
72 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) 77 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page)
73 { 78 {
74 return adoptRefWillBeNoop(new InternalSettings(page)); 79 return adoptRefWillBeNoop(new InternalSettings(page));
75 } 80 }
76 static InternalSettings* from(Page&); 81 static InternalSettings* from(Page&);
82
83 #if !ENABLE(OILPAN)
77 void hostDestroyed() { m_page = 0; } 84 void hostDestroyed() { m_page = 0; }
85 #endif
haraken 2014/04/30 02:41:22 Just I'm curious but why do we need to clear m_pag
zerny-chromium 2014/04/30 08:29:34 InternalSettings is RefCounted and does not keep t
78 86
79 virtual ~InternalSettings(); 87 virtual ~InternalSettings();
80 void resetToConsistentState(); 88 void resetToConsistentState();
81 89
82 void setStandardFontFamily(const AtomicString& family, const String& script, ExceptionState&); 90 void setStandardFontFamily(const AtomicString& family, const String& script, ExceptionState&);
83 void setSerifFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); 91 void setSerifFontFamily(const AtomicString& family, const String& script, Ex ceptionState&);
84 void setSansSerifFontFamily(const AtomicString& family, const String& script , ExceptionState&); 92 void setSansSerifFontFamily(const AtomicString& family, const String& script , ExceptionState&);
85 void setFixedFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); 93 void setFixedFontFamily(const AtomicString& family, const String& script, Ex ceptionState&);
86 void setCursiveFontFamily(const AtomicString& family, const String& script, ExceptionState&); 94 void setCursiveFontFamily(const AtomicString& family, const String& script, ExceptionState&);
87 void setFantasyFontFamily(const AtomicString& family, const String& script, ExceptionState&); 95 void setFantasyFontFamily(const AtomicString& family, const String& script, ExceptionState&);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Page* page() const { return m_page; } 133 Page* page() const { return m_page; }
126 static const char* supplementName(); 134 static const char* supplementName();
127 135
128 Page* m_page; 136 Page* m_page;
129 Backup m_backup; 137 Backup m_backup;
130 }; 138 };
131 139
132 } // namespace WebCore 140 } // namespace WebCore
133 141
134 #endif 142 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698