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

Unified Diff: fpdfsdk/fxedit/include/fxet_edit.h

Issue 2187073005: Splitting fpdfdoc/doc_* part II. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fpdf_doc_III
Patch Set: Rebase to master Created 4 years, 4 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 | « fpdfsdk/fxedit/fxet_list.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fxedit/include/fxet_edit.h
diff --git a/fpdfsdk/fxedit/include/fxet_edit.h b/fpdfsdk/fxedit/include/fxet_edit.h
index bf8828696bd57a07e93be2055f6d33a195608600..9adf17271bba2c586c9f6216b2f77bdc0bed81c1 100644
--- a/fpdfsdk/fxedit/include/fxet_edit.h
+++ b/fpdfsdk/fxedit/include/fxet_edit.h
@@ -24,12 +24,6 @@ class CFX_RenderDevice;
class CFX_SystemHandler;
class IFX_Edit_UndoItem;
-#define FX_EDIT_IsFloatZero(f) (f < 0.0001 && f > -0.0001)
-#define FX_EDIT_IsFloatEqual(fa, fb) FX_EDIT_IsFloatZero(fa - fb)
-#define FX_EDIT_IsFloatBigger(fa, fb) (fa > fb && !FX_EDIT_IsFloatEqual(fa, fb))
-#define FX_EDIT_IsFloatSmaller(fa, fb) \
- (fa < fb && !FX_EDIT_IsFloatEqual(fa, fb))
-
enum EDIT_PROPS_E {
EP_LINELEADING,
EP_LINEINDENT,
@@ -55,21 +49,20 @@ struct CFX_Edit_LineRect {
}
FX_BOOL IsSameHeight(const CFX_Edit_LineRect& linerect) const {
- return FX_EDIT_IsFloatZero(
- (m_rcLine.top - m_rcLine.bottom) -
- (linerect.m_rcLine.top - linerect.m_rcLine.bottom));
+ return IsFloatZero((m_rcLine.top - m_rcLine.bottom) -
+ (linerect.m_rcLine.top - linerect.m_rcLine.bottom));
}
FX_BOOL IsSameTop(const CFX_Edit_LineRect& linerect) const {
- return FX_EDIT_IsFloatZero(m_rcLine.top - linerect.m_rcLine.top);
+ return IsFloatZero(m_rcLine.top - linerect.m_rcLine.top);
}
FX_BOOL IsSameLeft(const CFX_Edit_LineRect& linerect) const {
- return FX_EDIT_IsFloatZero(m_rcLine.left - linerect.m_rcLine.left);
+ return IsFloatZero(m_rcLine.left - linerect.m_rcLine.left);
}
FX_BOOL IsSameRight(const CFX_Edit_LineRect& linerect) const {
- return FX_EDIT_IsFloatZero(m_rcLine.right - linerect.m_rcLine.right);
+ return IsFloatZero(m_rcLine.right - linerect.m_rcLine.right);
}
CPVT_WordRange m_wrLine;
« no previous file with comments | « fpdfsdk/fxedit/fxet_list.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698