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

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

Issue 2758683002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/layout/ (Closed)
Patch Set: Rebase with latest Created 3 years, 9 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Note: This does NOT affect overflow handling on outer/inner <svg> elements 55 // Note: This does NOT affect overflow handling on outer/inner <svg> elements
56 // - this is handled 56 // - this is handled
57 // manually by LayoutSVGRoot - which owns the documents enclosing root layer 57 // manually by LayoutSVGRoot - which owns the documents enclosing root layer
58 // and thus works fine. 58 // and thus works fine.
59 return false; 59 return false;
60 } 60 }
61 61
62 void LayoutSVGBlock::absoluteRects(Vector<IntRect>&, const LayoutPoint&) const { 62 void LayoutSVGBlock::absoluteRects(Vector<IntRect>&, const LayoutPoint&) const {
63 // This code path should never be taken for SVG, as we're assuming 63 // This code path should never be taken for SVG, as we're assuming
64 // useTransforms=true everywhere, absoluteQuads should be used. 64 // useTransforms=true everywhere, absoluteQuads should be used.
65 ASSERT_NOT_REACHED(); 65 NOTREACHED();
66 } 66 }
67 67
68 void LayoutSVGBlock::willBeDestroyed() { 68 void LayoutSVGBlock::willBeDestroyed() {
69 SVGResourcesCache::clientDestroyed(this); 69 SVGResourcesCache::clientDestroyed(this);
70 LayoutBlockFlow::willBeDestroyed(); 70 LayoutBlockFlow::willBeDestroyed();
71 } 71 }
72 72
73 void LayoutSVGBlock::updateFromStyle() { 73 void LayoutSVGBlock::updateFromStyle() {
74 LayoutBlockFlow::updateFromStyle(); 74 LayoutBlockFlow::updateFromStyle();
75 setFloating(false); 75 setFloating(false);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool retval = SVGLayoutSupport::mapToVisualRectInAncestorSpace( 143 bool retval = SVGLayoutSupport::mapToVisualRectInAncestorSpace(
144 *this, ancestor, FloatRect(rect), rect); 144 *this, ancestor, FloatRect(rect), rect);
145 transformState.setQuad(FloatQuad(FloatRect(rect))); 145 transformState.setQuad(FloatQuad(FloatRect(rect)));
146 return retval; 146 return retval;
147 } 147 }
148 148
149 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, 149 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&,
150 const HitTestLocation&, 150 const HitTestLocation&,
151 const LayoutPoint&, 151 const LayoutPoint&,
152 HitTestAction) { 152 HitTestAction) {
153 ASSERT_NOT_REACHED(); 153 NOTREACHED();
154 return false; 154 return false;
155 } 155 }
156 156
157 } // namespace blink 157 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698