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

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

Issue 2604073002: Apply offset from the correct graphics layer; simplify code for link highlights. (Closed)
Patch Set: Created 3 years, 11 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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool hasPendingSelection() const; 144 bool hasPendingSelection() const;
145 void commitPendingSelection(); 145 void commitPendingSelection();
146 LayoutObject* selectionStart(); 146 LayoutObject* selectionStart();
147 LayoutObject* selectionEnd(); 147 LayoutObject* selectionEnd();
148 IntRect selectionBounds(); 148 IntRect selectionBounds();
149 void selectionStartEnd(int& startPos, int& endPos); 149 void selectionStartEnd(int& startPos, int& endPos);
150 void invalidatePaintForSelection(); 150 void invalidatePaintForSelection();
151 151
152 void absoluteRects(Vector<IntRect>&, 152 void absoluteRects(Vector<IntRect>&,
153 const LayoutPoint& accumulatedOffset) const override; 153 const LayoutPoint& accumulatedOffset) const override;
154 void absoluteQuads(Vector<FloatQuad>&) const override; 154 void absoluteQuads(Vector<FloatQuad>&,
155 MapCoordinatesFlags mode = 0) const override;
155 156
156 LayoutRect viewRect() const override; 157 LayoutRect viewRect() const override;
157 LayoutRect overflowClipRect( 158 LayoutRect overflowClipRect(
158 const LayoutPoint& location, 159 const LayoutPoint& location,
159 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; 160 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override;
160 161
161 LayoutState* layoutState() const { return m_layoutState; } 162 LayoutState* layoutState() const { return m_layoutState; }
162 163
163 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override; 164 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
164 165
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 unsigned m_hitTestCount; 310 unsigned m_hitTestCount;
310 unsigned m_hitTestCacheHits; 311 unsigned m_hitTestCacheHits;
311 Persistent<HitTestCache> m_hitTestCache; 312 Persistent<HitTestCache> m_hitTestCache;
312 }; 313 };
313 314
314 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 315 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
315 316
316 } // namespace blink 317 } // namespace blink
317 318
318 #endif // LayoutView_h 319 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698