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

Unified Diff: Source/platform/text/BidiResolver.h

Issue 62483002: Add ASSERTs in BidiResolver and RenderBlockLineLayout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/platform/text/BidiRunList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/BidiResolver.h
diff --git a/Source/platform/text/BidiResolver.h b/Source/platform/text/BidiResolver.h
index a8660cd52bdbeea688a4858081f3c15ab70e5d18..97d3ad496f3362ce5ad5805fc17bb2b91e2be225 100644
--- a/Source/platform/text/BidiResolver.h
+++ b/Source/platform/text/BidiResolver.h
@@ -199,7 +199,11 @@ public:
void setDir(WTF::Unicode::Direction d) { m_direction = d; }
const BidiStatus& status() const { return m_status; }
- void setStatus(const BidiStatus s) { m_status = s; }
+ void setStatus(const BidiStatus s)
+ {
+ ASSERT(s.context);
+ m_status = s;
+ }
MidpointState<Iterator>& midpointState() { return m_midpointState; }
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/platform/text/BidiRunList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698