mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove heap/Handle usage from v8_inspector
I also removed it from a bunch of core/ as almost all the places its included it is not actually needed. BUG=435243 TBR=yurys@chromium.org Review URL: https://codereview.chromium.org/775803002
This commit is contained in:
parent
c2f8ed76bd
commit
8711bf43a8
@ -31,7 +31,6 @@
|
||||
#ifndef SKY_ENGINE_BINDINGS_CORE_V8_CUSTOMELEMENTWRAPPER_H_
|
||||
#define SKY_ENGINE_BINDINGS_CORE_V8_CUSTOMELEMENTWRAPPER_H_
|
||||
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
|
||||
@ -34,8 +34,6 @@
|
||||
#include "sky/engine/bindings/core/v8/ScriptValue.h"
|
||||
#include "sky/engine/bindings/core/v8/V8ThrowException.h"
|
||||
#include "sky/engine/core/dom/ExceptionCode.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/PassOwnPtr.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
#include "sky/engine/wtf/text/WTFString.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
@ -32,8 +32,6 @@
|
||||
#define SKY_ENGINE_BINDINGS_CORE_V8_SCRIPTWRAPPABLE_H_
|
||||
|
||||
#include "sky/engine/bindings/core/v8/WrapperTypeInfo.h"
|
||||
#include "sky/engine/platform/ScriptForbiddenScope.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
@ -50,7 +50,6 @@
|
||||
#include "sky/engine/core/html/ImageData.h"
|
||||
#include "sky/engine/core/html/canvas/DataView.h"
|
||||
#include "sky/engine/platform/SharedBuffer.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/public/platform/Platform.h"
|
||||
#include "sky/engine/wtf/ArrayBuffer.h"
|
||||
#include "sky/engine/wtf/ArrayBufferContents.h"
|
||||
|
||||
@ -49,7 +49,6 @@
|
||||
#include "sky/engine/core/loader/FrameLoaderClient.h"
|
||||
#include "sky/engine/platform/ScriptForbiddenScope.h"
|
||||
#include "sky/engine/platform/TraceEvent.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/public/platform/Platform.h"
|
||||
#include "sky/engine/wtf/Assertions.h"
|
||||
#include "sky/engine/wtf/OwnPtr.h"
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
#define SKY_ENGINE_BINDINGS_CORE_V8_WRAPPERTYPEINFO_H_
|
||||
|
||||
#include "gin/public/wrapper_info.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/Assertions.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
#ifndef {{namespace}}ElementFactory_h
|
||||
#define {{namespace}}ElementFactory_h
|
||||
|
||||
#include "platform/heap/Handle.h"
|
||||
#include "wtf/Forward.h"
|
||||
#include "wtf/PassRefPtr.h"
|
||||
#include "sky/engine/wtf/Forward.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
|
||||
@ -35,7 +35,6 @@
|
||||
#include "sky/engine/core/animation/AnimationNode.h"
|
||||
#include "sky/engine/core/animation/EffectInput.h"
|
||||
#include "sky/engine/core/animation/TimingInput.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/RefPtr.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
@ -33,8 +33,6 @@
|
||||
|
||||
#include "gen/sky/core/CSSPropertyNames.h"
|
||||
#include "sky/engine/bindings/core/v8/ScriptWrappable.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/HashMap.h"
|
||||
#include "sky/engine/wtf/PassOwnPtr.h"
|
||||
#include "sky/engine/wtf/RefCounted.h"
|
||||
|
||||
|
||||
@ -33,7 +33,6 @@
|
||||
|
||||
#include "sky/engine/bindings/core/v8/ScriptWrappable.h"
|
||||
#include "sky/engine/core/animation/Timing.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/OwnPtr.h"
|
||||
#include "sky/engine/wtf/PassOwnPtr.h"
|
||||
#include "sky/engine/wtf/RefCounted.h"
|
||||
|
||||
@ -37,12 +37,9 @@
|
||||
#include "sky/engine/core/animation/StringKeyframe.h"
|
||||
#include "sky/engine/core/animation/animatable/AnimatableValueKeyframe.h"
|
||||
#include "sky/engine/platform/animation/TimingFunction.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/HashMap.h"
|
||||
#include "sky/engine/wtf/HashSet.h"
|
||||
#include "sky/engine/wtf/PassOwnPtr.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
#include "sky/engine/wtf/RefCounted.h"
|
||||
#include "sky/engine/wtf/Vector.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
#define SKY_ENGINE_CORE_ANIMATION_ANIMATABLE_ANIMATABLEVALUE_H_
|
||||
|
||||
#include "sky/engine/core/css/CSSValue.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/RefCounted.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
@ -31,7 +31,6 @@
|
||||
#define SKY_ENGINE_CORE_CSS_BASICSHAPEFUNCTIONS_H_
|
||||
|
||||
#include "sky/engine/core/rendering/style/BasicShapes.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
@ -31,7 +31,6 @@
|
||||
#define SKY_ENGINE_CORE_CSS_CSSFILTERRULE_H_
|
||||
|
||||
#include "sky/engine/core/css/CSSRule.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
|
||||
@ -23,7 +23,6 @@
|
||||
#define SKY_ENGINE_CORE_CSS_CSSFONTFACERULE_H_
|
||||
|
||||
#include "sky/engine/core/css/CSSRule.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@
|
||||
#include "sky/engine/core/css/FontLoader.h"
|
||||
#include "sky/engine/platform/fonts/FontSelector.h"
|
||||
#include "sky/engine/platform/fonts/GenericFontFamilySettings.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/Forward.h"
|
||||
#include "sky/engine/wtf/HashMap.h"
|
||||
#include "sky/engine/wtf/HashSet.h"
|
||||
@ -59,9 +58,7 @@ public:
|
||||
virtual void willUseFontData(const FontDescription&, const AtomicString& family, UChar32) override;
|
||||
bool isPlatformFontAvailable(const FontDescription&, const AtomicString& family);
|
||||
|
||||
#if !ENABLE(OILPAN)
|
||||
void clearDocument();
|
||||
#endif
|
||||
|
||||
void fontFaceInvalidated();
|
||||
|
||||
@ -69,9 +66,7 @@ public:
|
||||
virtual void fontCacheInvalidated() override;
|
||||
|
||||
void registerForInvalidationCallbacks(CSSFontSelectorClient*);
|
||||
#if !ENABLE(OILPAN)
|
||||
void unregisterForInvalidationCallbacks(CSSFontSelectorClient*);
|
||||
#endif
|
||||
|
||||
Document* document() const { return m_document; }
|
||||
FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
|
||||
|
||||
@ -27,7 +27,6 @@
|
||||
#define SKY_ENGINE_CORE_CSS_CSSSEGMENTEDFONTFACE_H_
|
||||
|
||||
#include "sky/engine/platform/fonts/FontTraits.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/HashMap.h"
|
||||
#include "sky/engine/wtf/ListHashSet.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
|
||||
@ -26,7 +26,6 @@
|
||||
#ifndef SKY_ENGINE_CORE_CSS_DOCUMENTFONTFACESET_H_
|
||||
#define SKY_ENGINE_CORE_CSS_DOCUMENTFONTFACESET_H_
|
||||
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/PassRefPtr.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
@ -21,13 +21,10 @@
|
||||
#define SKY_ENGINE_CORE_CSS_MEDIAQUERYLISTLISTENER_H_
|
||||
|
||||
#include "sky/engine/core/css/MediaQueryList.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/RefCounted.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
class MediaQueryList;
|
||||
|
||||
// See http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface
|
||||
class MediaQueryListListener : public RefCounted<MediaQueryListListener> {
|
||||
public:
|
||||
|
||||
@ -24,7 +24,6 @@
|
||||
|
||||
#include "sky/engine/core/css/CSSSelectorList.h"
|
||||
#include "sky/engine/core/css/MediaList.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/RefPtr.h"
|
||||
|
||||
namespace blink {
|
||||
@ -60,13 +59,11 @@ public:
|
||||
|
||||
PassRefPtr<StyleRuleBase> copy() const;
|
||||
|
||||
#if !ENABLE(OILPAN)
|
||||
void deref()
|
||||
{
|
||||
if (derefBase())
|
||||
destroy();
|
||||
}
|
||||
#endif // !ENABLE(OILPAN)
|
||||
|
||||
// FIXME: There shouldn't be any need for the null parent version.
|
||||
PassRefPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet = 0) const;
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
#define SKY_ENGINE_CORE_INSPECTOR_SCRIPTARGUMENTS_H_
|
||||
|
||||
#include "sky/engine/bindings/core/v8/ScriptState.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/Forward.h"
|
||||
#include "sky/engine/wtf/RefCounted.h"
|
||||
#include "sky/engine/wtf/Vector.h"
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
#define SKY_ENGINE_V8_INSPECTOR_INSPECTORBASEAGENT_H_
|
||||
|
||||
#include "gen/v8_inspector/InspectorBackendDispatcher.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/Forward.h"
|
||||
#include "sky/engine/wtf/Vector.h"
|
||||
#include "sky/engine/wtf/text/WTFString.h"
|
||||
|
||||
@ -33,7 +33,6 @@
|
||||
|
||||
|
||||
#include "sky/engine/platform/JSONValues.h"
|
||||
#include "sky/engine/platform/heap/Handle.h"
|
||||
#include "sky/engine/wtf/HashMap.h"
|
||||
#include "sky/engine/wtf/text/WTFString.h"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user