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

Side by Side Diff: Source/core/layout/LayoutTextFragment.h

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 FirstLetterPseudoElement* firstLetterPseudoElement() const { return m_firstL etterPseudoElement; } 71 FirstLetterPseudoElement* firstLetterPseudoElement() const { return m_firstL etterPseudoElement; }
72 72
73 void setIsRemainingTextLayoutObject(bool isRemainingText) { m_isRemainingTex tLayoutObject = isRemainingText; } 73 void setIsRemainingTextLayoutObject(bool isRemainingText) { m_isRemainingTex tLayoutObject = isRemainingText; }
74 bool isRemainingTextLayoutObject() const { return m_isRemainingTextLayoutObj ect; } 74 bool isRemainingTextLayoutObject() const { return m_isRemainingTextLayoutObj ect; }
75 75
76 private: 76 private:
77 LayoutBlock* blockForAccompanyingFirstLetter() const; 77 LayoutBlock* blockForAccompanyingFirstLetter() const;
78 virtual UChar previousCharacter() const override; 78 virtual UChar previousCharacter() const override;
79 79
80 Text* associatedTextNode() const; 80 Text* associatedTextNode() const;
81 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override; 81 void updateHitTestResult(HitTestResult&, const LayoutPoint&, const LayoutRec t&) override;
82 82
83 unsigned m_start; 83 unsigned m_start;
84 unsigned m_end; 84 unsigned m_end;
85 bool m_isRemainingTextLayoutObject; 85 bool m_isRemainingTextLayoutObject;
86 RefPtr<StringImpl> m_contentString; 86 RefPtr<StringImpl> m_contentString;
87 // Reference back to FirstLetterPseudoElement; cleared by FirstLetterPseudoE lement::detach() if 87 // Reference back to FirstLetterPseudoElement; cleared by FirstLetterPseudoE lement::detach() if
88 // it goes away first. 88 // it goes away first.
89 FirstLetterPseudoElement* m_firstLetterPseudoElement; 89 FirstLetterPseudoElement* m_firstLetterPseudoElement;
90 }; 90 };
91 91
92 DEFINE_TYPE_CASTS(LayoutTextFragment, LayoutObject, object, toLayoutText(object) ->isTextFragment(), toLayoutText(object).isTextFragment()); 92 DEFINE_TYPE_CASTS(LayoutTextFragment, LayoutObject, object, toLayoutText(object) ->isTextFragment(), toLayoutText(object).isTextFragment());
93 93
94 } // namespace blink 94 } // namespace blink
95 95
96 #endif // LayoutTextFragment_h 96 #endif // LayoutTextFragment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698