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

Side by Side Diff: Source/core/layout/LayoutView.h

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 8 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
« no previous file with comments | « Source/core/layout/LayoutTextControlSingleLine.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // The root of the render tree, corresponding to the CSS initial containing bloc k. 43 // The root of the render tree, corresponding to the CSS initial containing bloc k.
44 // It's dimensions match that of the logical viewport (which may be different fr om 44 // It's dimensions match that of the logical viewport (which may be different fr om
45 // the visible viewport in fixed-layout mode), and it is always at position (0,0 ) 45 // the visible viewport in fixed-layout mode), and it is always at position (0,0 )
46 // relative to the document (and so isn't necessarily in view). 46 // relative to the document (and so isn't necessarily in view).
47 class CORE_EXPORT LayoutView final : public LayoutBlockFlow { 47 class CORE_EXPORT LayoutView final : public LayoutBlockFlow {
48 public: 48 public:
49 explicit LayoutView(Document*); 49 explicit LayoutView(Document*);
50 virtual ~LayoutView(); 50 virtual ~LayoutView();
51 void willBeDestroyed() override; 51 void willBeDestroyed() override;
52 52
53 bool hitTest(const HitTestRequest&, HitTestResult&); 53 bool hitTest(HitTestResult&);
54 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); 54 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&);
55 55
56 // Returns the total count of calls to HitTest, for testing. 56 // Returns the total count of calls to HitTest, for testing.
57 unsigned hitTestCount() const { return m_hitTestCount; } 57 unsigned hitTestCount() const { return m_hitTestCount; }
58 58
59 virtual const char* name() const override { return "LayoutView"; } 59 virtual const char* name() const override { return "LayoutView"; }
60 60
61 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } 61 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); }
62 62
63 virtual DeprecatedPaintLayerType layerTypeRequired() const override { return NormalDeprecatedPaintLayer; } 63 virtual DeprecatedPaintLayerType layerTypeRequired() const override { return NormalDeprecatedPaintLayer; }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 234 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
235 } 235 }
236 private: 236 private:
237 const PaintInvalidationState* m_paintInvalidationState; 237 const PaintInvalidationState* m_paintInvalidationState;
238 bool m_didDisable; 238 bool m_didDisable;
239 }; 239 };
240 240
241 } // namespace blink 241 } // namespace blink
242 242
243 #endif // LayoutView_h 243 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTextControlSingleLine.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698