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

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

Issue 1813383002: Move all fast-path paint invalidation mapping into PaintInvalidationState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable fast-path/slow-path comparison because of saturated operations of LayoutUnit 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 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2008 Rob Buis <buis@kde.org>
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 FloatRect objectBoundingBox() const override { return floatLinesBoundingBox( ); } 54 FloatRect objectBoundingBox() const override { return floatLinesBoundingBox( ); }
55 55
56 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || type == LayoutObjectSVGInlineText || LayoutText::isOfType(type); } 56 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || type == LayoutObjectSVGInlineText || LayoutText::isOfType(type); }
57 57
58 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 58 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
59 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) override; 59 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) override;
60 IntRect linesBoundingBox() const override; 60 IntRect linesBoundingBox() const override;
61 InlineTextBox* createTextBox(int start, unsigned short length) override; 61 InlineTextBox* createTextBox(int start, unsigned short length) override;
62 62
63 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState*) const final; 63 LayoutRect absoluteClippedOverflowRect() const final;
64 FloatRect paintInvalidationRectInLocalSVGCoordinates() const final;
64 65
65 float m_scalingFactor; 66 float m_scalingFactor;
66 Font m_scaledFont; 67 Font m_scaledFont;
67 SVGTextLayoutAttributes m_layoutAttributes; 68 SVGTextLayoutAttributes m_layoutAttributes;
68 }; 69 };
69 70
70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); 71 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText());
71 72
72 } // namespace blink 73 } // namespace blink
73 74
74 #endif // LayoutSVGInlineText_h 75 #endif // LayoutSVGInlineText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698