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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h

Issue 2920913003: Rename TextMatchMarker::rendered_rect_ to layout_rect_ (Closed)
Patch Set: Rename DMC::RenderedRectsForTextMatchMarkers() Created 3 years, 6 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // DocumentMarker implementations 48 // DocumentMarker implementations
49 MarkerType GetType() const final; 49 MarkerType GetType() const final;
50 50
51 // TextMatchMarker-specific 51 // TextMatchMarker-specific
52 bool IsActiveMatch() const; 52 bool IsActiveMatch() const;
53 void SetIsActiveMatch(bool active); 53 void SetIsActiveMatch(bool active);
54 54
55 bool IsRendered() const; 55 bool IsRendered() const;
56 bool Contains(const LayoutPoint&) const; 56 bool Contains(const LayoutPoint&) const;
57 void SetRenderedRect(const LayoutRect&); 57 void SetLayoutRect(const LayoutRect&);
58 const LayoutRect& RenderedRect() const; 58 const LayoutRect& GetLayoutRect() const;
59 void NullifyRenderedRect(); 59 void NullifyLayoutRect();
60
60 void Invalidate(); 61 void Invalidate();
61 bool IsValid() const; 62 bool IsValid() const;
62 63
63 private: 64 private:
64 MatchStatus match_status_; 65 MatchStatus match_status_;
65 LayoutStatus layout_status_ = LayoutStatus::kInvalid; 66 LayoutStatus layout_status_ = LayoutStatus::kInvalid;
66 LayoutRect rendered_rect_; 67 LayoutRect layout_rect_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(TextMatchMarker); 69 DISALLOW_COPY_AND_ASSIGN(TextMatchMarker);
69 }; 70 };
70 71
71 DEFINE_TYPE_CASTS(TextMatchMarker, 72 DEFINE_TYPE_CASTS(TextMatchMarker,
72 DocumentMarker, 73 DocumentMarker,
73 marker, 74 marker,
74 marker->GetType() == DocumentMarker::kTextMatch, 75 marker->GetType() == DocumentMarker::kTextMatch,
75 marker.GetType() == DocumentMarker::kTextMatch); 76 marker.GetType() == DocumentMarker::kTextMatch);
76 77
77 } // namespace blink 78 } // namespace blink
78 79
79 #endif 80 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698