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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.h

Issue 2871983002: blink: Remove CHECK_CONSISTENCY. (Closed)
Patch Set: . 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
Index: third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
index 1c1a3a40be56d5ad4313bd826d2ce6a6ce49d42c..ab20f325d5f24a9197718a29c22a5d3dcf079c6d 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
@@ -97,14 +97,8 @@ class InlineFlowBox : public InlineBox {
void SetNextLineBox(InlineFlowBox* n) { next_line_box_ = n; }
void SetPreviousLineBox(InlineFlowBox* p) { prev_line_box_ = p; }
- InlineBox* FirstChild() const {
- CheckConsistency();
- return first_child_;
- }
- InlineBox* LastChild() const {
- CheckConsistency();
- return last_child_;
- }
+ InlineBox* FirstChild() const { return first_child_; }
+ InlineBox* LastChild() const { return last_child_; }
bool IsLeaf() const final { return false; }
@@ -282,7 +276,6 @@ class InlineFlowBox : public InlineBox {
bool HasTextDescendants() const { return has_text_descendants_; }
void SetHasTextDescendants() { has_text_descendants_ = true; }
- void CheckConsistency() const;
void SetHasBadChildList();
// Line visual and layout overflow are in the coordinate space of the block.
@@ -483,10 +476,6 @@ class InlineFlowBox : public InlineBox {
DEFINE_INLINE_BOX_TYPE_CASTS(InlineFlowBox);
-#if !DCHECK_IS_ON()
-inline void InlineFlowBox::CheckConsistency() const {}
-#endif
-
inline void InlineFlowBox::SetHasBadChildList() {
#if DCHECK_IS_ON()
has_bad_child_list_ = true;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698