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

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

Issue 2324603002: Move AX local bounding box calculation into LayoutObject (Closed)
Patch Set: Rebase Created 4 years, 3 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2009, 2013 Apple Inc. 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 InlineTextBox* createInlineTextBox(int start, unsigned short length); 95 InlineTextBox* createInlineTextBox(int start, unsigned short length);
96 void dirtyOrDeleteLineBoxesIfNeeded(bool fullLayout); 96 void dirtyOrDeleteLineBoxesIfNeeded(bool fullLayout);
97 void dirtyLineBoxes(); 97 void dirtyLineBoxes();
98 98
99 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c onst final; 99 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c onst final;
100 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig ned endOffset = INT_MAX, bool useSelectionHeight = false); 100 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig ned endOffset = INT_MAX, bool useSelectionHeight = false);
101 101
102 void absoluteQuads(Vector<FloatQuad>&) const final; 102 void absoluteQuads(Vector<FloatQuad>&) const final;
103 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns igned endOffset = INT_MAX, bool useSelectionHeight = false); 103 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns igned endOffset = INT_MAX, bool useSelectionHeight = false);
104 FloatRect localBoundingBoxRectForAccessibility() const final;
104 105
105 enum ClippingOption { NoClipping, ClipToEllipsis }; 106 enum ClippingOption { NoClipping, ClipToEllipsis };
106 enum LocalOrAbsoluteOption { LocalQuads, AbsoluteQuads }; 107 enum LocalOrAbsoluteOption { LocalQuads, AbsoluteQuads };
107 void quads(Vector<FloatQuad>&, ClippingOption = NoClipping, LocalOrAbsoluteO ption = AbsoluteQuads) const; 108 void quads(Vector<FloatQuad>&, ClippingOption = NoClipping, LocalOrAbsoluteO ption = AbsoluteQuads) const;
108 109
109 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 110 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
110 111
111 bool is8Bit() const { return m_text.is8Bit(); } 112 bool is8Bit() const { return m_text.is8Bit(); }
112 const LChar* characters8() const { return m_text.impl()->characters8(); } 113 const LChar* characters8() const { return m_text.impl()->characters8(); }
113 const UChar* characters16() const { return m_text.impl()->characters16(); } 114 const UChar* characters16() const { return m_text.impl()->characters16(); }
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 inline LayoutText* Text::layoutObject() const 293 inline LayoutText* Text::layoutObject() const
293 { 294 {
294 return toLayoutText(CharacterData::layoutObject()); 295 return toLayoutText(CharacterData::layoutObject());
295 } 296 }
296 297
297 void applyTextTransform(const ComputedStyle*, String&, UChar); 298 void applyTextTransform(const ComputedStyle*, String&, UChar);
298 299
299 } // namespace blink 300 } // namespace blink
300 301
301 #endif // LayoutText_h 302 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698