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

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

Issue 2816873002: Update PaintLayer size during layout, not after.
Patch Set: Speculatively remove call to UpdateScrollbars() Created 3 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 int ViewLogicalWidth(IncludeScrollbarsInRect = kExcludeScrollbars) const; 110 int ViewLogicalWidth(IncludeScrollbarsInRect = kExcludeScrollbars) const;
111 int ViewLogicalHeight(IncludeScrollbarsInRect = kExcludeScrollbars) const; 111 int ViewLogicalHeight(IncludeScrollbarsInRect = kExcludeScrollbars) const;
112 112
113 LayoutUnit ViewLogicalHeightForPercentages() const; 113 LayoutUnit ViewLogicalHeightForPercentages() const;
114 114
115 float ZoomFactor() const; 115 float ZoomFactor() const;
116 116
117 FrameView* GetFrameView() const { return frame_view_; } 117 FrameView* GetFrameView() const { return frame_view_; }
118 118
119 void UpdateAfterLayout() override;
120
119 // See comments for the equivalent method on LayoutObject. 121 // See comments for the equivalent method on LayoutObject.
120 bool MapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, 122 bool MapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor,
121 LayoutRect&, 123 LayoutRect&,
122 MapCoordinatesFlags mode, 124 MapCoordinatesFlags mode,
123 VisualRectFlags) const; 125 VisualRectFlags) const;
124 126
125 // |ancestor| can be nullptr, which will map the rect to the main frame's 127 // |ancestor| can be nullptr, which will map the rect to the main frame's
126 // space, even if the main frame is remote (or has intermediate remote 128 // space, even if the main frame is remote (or has intermediate remote
127 // frames in the chain). 129 // frames in the chain).
128 bool MapToVisualRectInAncestorSpaceInternal( 130 bool MapToVisualRectInAncestorSpaceInternal(
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 unsigned hit_test_count_; 300 unsigned hit_test_count_;
299 unsigned hit_test_cache_hits_; 301 unsigned hit_test_cache_hits_;
300 Persistent<HitTestCache> hit_test_cache_; 302 Persistent<HitTestCache> hit_test_cache_;
301 }; 303 };
302 304
303 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, IsLayoutView()); 305 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, IsLayoutView());
304 306
305 } // namespace blink 307 } // namespace blink
306 308
307 #endif // LayoutView_h 309 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698