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

Side by Side Diff: Source/core/rendering/HitTestResult.h

Issue 672953002: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 RenderObject* renderer() const; 93 RenderObject* renderer() const;
94 94
95 void setToShadowHostIfInUserAgentShadowRoot(); 95 void setToShadowHostIfInUserAgentShadowRoot();
96 96
97 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } 97 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; }
98 98
99 void setInnerNode(Node*); 99 void setInnerNode(Node*);
100 void setInnerNonSharedNode(Node*); 100 void setInnerNonSharedNode(Node*);
101 void setURLElement(Element*); 101 void setURLElement(Element*);
102 void setScrollbar(Scrollbar*); 102 void setScrollbar(Scrollbar*);
103 void setIsFirstLetter(bool b) { m_isFirstLetter = b; }
104 void setIsOverWidget(bool b) { m_isOverWidget = b; } 103 void setIsOverWidget(bool b) { m_isOverWidget = b; }
105 104
106 bool isSelected() const; 105 bool isSelected() const;
107 String spellingToolTip(TextDirection&) const; 106 String spellingToolTip(TextDirection&) const;
108 String title(TextDirection&) const; 107 String title(TextDirection&) const;
109 const AtomicString& altDisplayString() const; 108 const AtomicString& altDisplayString() const;
110 Image* image() const; 109 Image* image() const;
111 IntRect imageRect() const; 110 IntRect imageRect() const;
112 KURL absoluteImageURL() const; 111 KURL absoluteImageURL() const;
113 KURL absoluteMediaURL() const; 112 KURL absoluteMediaURL() const;
(...skipping 27 matching lines...) Expand all
141 RefPtrWillBeMember<Node> m_innerNode; 140 RefPtrWillBeMember<Node> m_innerNode;
142 RefPtrWillBeMember<Node> m_innerPossiblyPseudoNode; 141 RefPtrWillBeMember<Node> m_innerPossiblyPseudoNode;
143 RefPtrWillBeMember<Node> m_innerNonSharedNode; 142 RefPtrWillBeMember<Node> m_innerNonSharedNode;
144 // FIXME: Nothing changes this to a value different from m_hitTestLocation! 143 // FIXME: Nothing changes this to a value different from m_hitTestLocation!
145 LayoutPoint m_pointInInnerNodeFrame; // The hit-tested point in innerNode fr ame coordinates. 144 LayoutPoint m_pointInInnerNodeFrame; // The hit-tested point in innerNode fr ame coordinates.
146 LayoutPoint m_localPoint; // A point in the local coordinate space of m_inne rNonSharedNode's renderer. Allows us to efficiently 145 LayoutPoint m_localPoint; // A point in the local coordinate space of m_inne rNonSharedNode's renderer. Allows us to efficiently
147 // determine where inside the renderer we hit on s ubsequent operations. 146 // determine where inside the renderer we hit on s ubsequent operations.
148 RefPtrWillBeMember<Element> m_innerURLElement; 147 RefPtrWillBeMember<Element> m_innerURLElement;
149 RefPtrWillBeMember<Scrollbar> m_scrollbar; 148 RefPtrWillBeMember<Scrollbar> m_scrollbar;
150 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderPart for example). 149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderPart for example).
151 bool m_isFirstLetter;
152 150
153 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; 151 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult;
154 }; 152 };
155 153
156 } // namespace blink 154 } // namespace blink
157 155
158 #endif // HitTestResult_h 156 #endif // HitTestResult_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698