fxcrt convergence - master side
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1410933002 .
diff --git a/core/src/fxge/agg/src/fx_agg_driver.cpp b/core/src/fxge/agg/src/fx_agg_driver.cpp
index fd3ea25..d9783d1 100644
--- a/core/src/fxge/agg/src/fx_agg_driver.cpp
+++ b/core/src/fxge/agg/src/fx_agg_driver.cpp
@@ -318,7 +318,7 @@
const CFX_AffineMatrix* pObject2Device,
int fill_mode) {
m_FillFlags = fill_mode;
- if (m_pClipRgn == NULL) {
+ if (!m_pClipRgn) {
m_pClipRgn = new CFX_ClipRgn(GetDeviceCaps(FXDC_PIXEL_WIDTH),
GetDeviceCaps(FXDC_PIXEL_HEIGHT));
}
@@ -350,7 +350,7 @@
const CFX_PathData* pPathData,
const CFX_AffineMatrix* pObject2Device,
const CFX_GraphStateData* pGraphState) {
- if (m_pClipRgn == NULL) {
+ if (!m_pClipRgn) {
m_pClipRgn = new CFX_ClipRgn(GetDeviceCaps(FXDC_PIXEL_WIDTH),
GetDeviceCaps(FXDC_PIXEL_HEIGHT));
}