diff options
Diffstat (limited to 'Source/WebCore/rendering/HitTestRequest.h')
-rw-r--r-- | Source/WebCore/rendering/HitTestRequest.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/WebCore/rendering/HitTestRequest.h b/Source/WebCore/rendering/HitTestRequest.h index 40d8d5fe5..ca2b9a6f0 100644 --- a/Source/WebCore/rendering/HitTestRequest.h +++ b/Source/WebCore/rendering/HitTestRequest.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2006 Apple Inc. * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) * @@ -20,8 +20,7 @@ * */ -#ifndef HitTestRequest_h -#define HitTestRequest_h +#pragma once namespace WebCore { @@ -35,7 +34,7 @@ public: IgnoreClipping = 1 << 5, SVGClipContent = 1 << 6, TouchEvent = 1 << 7, - DisallowShadowContent = 1 << 8, + DisallowUserAgentShadowContent = 1 << 8, AllowFrameScrollbars = 1 << 9, AllowChildFrameContent = 1 << 10, ChildFrameHitTest = 1 << 11, @@ -44,7 +43,7 @@ public: typedef unsigned HitTestRequestType; - HitTestRequest(HitTestRequestType requestType) + HitTestRequest(HitTestRequestType requestType = ReadOnly | Active | DisallowUserAgentShadowContent) : m_requestType(requestType) { } @@ -57,7 +56,7 @@ public: bool svgClipContent() const { return m_requestType & SVGClipContent; } bool touchEvent() const { return m_requestType & TouchEvent; } bool mouseEvent() const { return !touchEvent(); } - bool disallowsShadowContent() const { return m_requestType & DisallowShadowContent; } + bool disallowsUserAgentShadowContent() const { return m_requestType & DisallowUserAgentShadowContent; } bool allowsFrameScrollbars() const { return m_requestType & AllowFrameScrollbars; } bool allowsChildFrameContent() const { return m_requestType & AllowChildFrameContent; } bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest; } @@ -73,5 +72,3 @@ private: }; } // namespace WebCore - -#endif // HitTestRequest_h |