KHtml

RenderSVGInlineText.h
1 /*
2  * This file is part of the WebKit project.
3  *
4  * Copyright (C) 2006 Oliver Hunt <[email protected]>
5  * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public License
18  * along with this library; see the file COPYING.LIB. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  */
23 
24 #ifndef RenderSVGInlineText_h
25 #define RenderSVGInlineText_h
26 
27 #if ENABLE(SVG)
28 
29 //#include "RenderText.h"
30 #include "render_text.h"
31 
32 namespace WebCore
33 {
34 using namespace khtml;
35 class RenderSVGInlineText : public RenderText
36 {
37 public:
38  RenderSVGInlineText(DOM::NodeImpl *, DOM::DOMStringImpl *);
39  const char *renderName() const override
40  {
41  return "RenderSVGInlineText";
42  }
43  virtual void absoluteRects(Vector<IntRect> &rects, int tx, int ty, bool topLevel = true);
44  bool requiresLayer() const override
45  {
46  return false;
47  }
48  virtual IntRect selectionRect(bool clipToVisibleContent = true);
49  bool isSVGText() const override
50  {
51  return true;
52  }
53  virtual InlineTextBox *createInlineTextBox();
54  InlineBox *createInlineBox(bool, bool) override
55  {
56  return createInlineTextBox();
57  }
58 
59  /*virtual IntRect caretRect(int offset, EAffinity, int* extraWidthToEndOfLine = 0);
60  virtual VisiblePosition positionForCoordinates(int x, int y);*/
61 
62 private:
63  IntRect computeAbsoluteRectForRange(int startPos, int endPos);
64 };
65 
66 }
67 
68 #endif // ENABLE(SVG)
69 
70 #endif // !RenderSVGInlineText_h
This file is part of the HTML rendering engine for KDE.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.