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

Side by Side Diff: sky/engine/core/rendering/RenderView.cpp

Issue 713073003: remove updateTouchEventTargetRectsIfNeeded (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 6 years, 1 month 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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 void RenderView::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, TransformStat e& transformState) const 222 void RenderView::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, TransformStat e& transformState) const
223 { 223 {
224 if (mode & UseTransforms && shouldUseTransformFromContainer(0)) { 224 if (mode & UseTransforms && shouldUseTransformFromContainer(0)) {
225 TransformationMatrix t; 225 TransformationMatrix t;
226 getTransformFromContainer(0, LayoutSize(), t); 226 getTransformFromContainer(0, LayoutSize(), t);
227 transformState.applyTransform(t); 227 transformState.applyTransform(t);
228 } 228 }
229 } 229 }
230 230
231 void RenderView::computeSelfHitTestRects(Vector<LayoutRect>& rects, const Layout Point&) const
232 {
233 // Record the entire size of the contents of the frame. Note that we don't j ust
234 // use the viewport size (containing block) here because we want to ensure t his includes
235 // all children (so we can avoid walking them explicitly).
236 rects.append(LayoutRect(LayoutPoint::zero(), frameView()->size()));
237 }
238
239 void RenderView::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 231 void RenderView::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
240 { 232 {
241 // If we ever require layout but receive a paint anyway, something has gone horribly wrong. 233 // If we ever require layout but receive a paint anyway, something has gone horribly wrong.
242 ASSERT(!needsLayout()); 234 ASSERT(!needsLayout());
243 // RenderViews should never be called to paint with an offset not on device pixels. 235 // RenderViews should never be called to paint with an offset not on device pixels.
244 ASSERT(LayoutPoint(IntPoint(paintOffset.x(), paintOffset.y())) == paintOffse t); 236 ASSERT(LayoutPoint(IntPoint(paintOffset.x(), paintOffset.y())) == paintOffse t);
245 237
246 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); 238 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this);
247 239
248 // This avoids painting garbage between columns if there is a column gap. 240 // This avoids painting garbage between columns if there is a column gap.
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 return viewWidth(IncludeScrollbars) / scale; 761 return viewWidth(IncludeScrollbars) / scale;
770 } 762 }
771 763
772 double RenderView::layoutViewportHeight() const 764 double RenderView::layoutViewportHeight() const
773 { 765 {
774 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; 766 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
775 return viewHeight(IncludeScrollbars) / scale; 767 return viewHeight(IncludeScrollbars) / scale;
776 } 768 }
777 769
778 } // namespace blink 770 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698