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

Unified Diff: third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp

Issue 2915193002: [DMC #28] Rename TextMatchMarker::State to LayoutStatus (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
index 897f6aba3844039940a965a2c99a30d1a4e9849c..2e327adaa7194dabf62bebd39337624c529b39aa 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
@@ -24,38 +24,38 @@ void TextMatchMarker::SetIsActiveMatch(bool active) {
}
bool TextMatchMarker::IsRendered() const {
- return layout_state_ == State::kValidNotNull;
+ return layout_status_ == LayoutStatus::kValidNotNull;
}
bool TextMatchMarker::Contains(const LayoutPoint& point) const {
- DCHECK_EQ(layout_state_, State::kValidNotNull);
+ DCHECK_EQ(layout_status_, LayoutStatus::kValidNotNull);
return rendered_rect_.Contains(point);
}
void TextMatchMarker::SetRenderedRect(const LayoutRect& rect) {
- if (layout_state_ == State::kValidNotNull && rect == rendered_rect_)
+ if (layout_status_ == LayoutStatus::kValidNotNull && rect == rendered_rect_)
return;
- layout_state_ = State::kValidNotNull;
+ layout_status_ = LayoutStatus::kValidNotNull;
rendered_rect_ = rect;
}
const LayoutRect& TextMatchMarker::RenderedRect() const {
- DCHECK_EQ(layout_state_, State::kValidNotNull);
+ DCHECK_EQ(layout_status_, LayoutStatus::kValidNotNull);
return rendered_rect_;
}
void TextMatchMarker::NullifyRenderedRect() {
- layout_state_ = State::kValidNull;
+ layout_status_ = LayoutStatus::kValidNull;
// Now |rendered_rect_| can not be accessed until |SetRenderedRect| is
// called.
}
void TextMatchMarker::Invalidate() {
- layout_state_ = State::kInvalid;
+ layout_status_ = LayoutStatus::kInvalid;
}
bool TextMatchMarker::IsValid() const {
- return layout_state_ != State::kInvalid;
+ return layout_status_ != LayoutStatus::kInvalid;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698