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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp

Issue 1833493003: Remove ForceHorriblySlowRectMapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pi
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 { 108 {
109 return SVGLayoutSupport::mapToVisualRectInAncestorSpace(*this, ancestor, Flo atRect(rect), rect); 109 return SVGLayoutSupport::mapToVisualRectInAncestorSpace(*this, ancestor, Flo atRect(rect), rect);
110 } 110 }
111 111
112 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, const HitTestLocation&, const L ayoutPoint&, HitTestAction) 112 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, const HitTestLocation&, const L ayoutPoint&, HitTestAction)
113 { 113 {
114 ASSERT_NOT_REACHED(); 114 ASSERT_NOT_REACHED();
115 return false; 115 return false;
116 } 116 }
117 117
118 void LayoutSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI nvalidationState)
119 {
120 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
121 return;
122
123 // TODO(wangxianzhu): Move this to fast path if possible. crbug.com/391054.
124 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
125 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState);
126 }
127
128 } // namespace blink 118 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698