summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-16 14:11:48 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-16 14:11:48 -0700
commit887795881ba3babdc1d2c310e3b68deb5ad9b53b (patch)
tree3840218c44fe042d993398ab7cd277bdd29b573c /core/src
parent4a7b3f451604389cc8409466773a3ea702e1f3ae (diff)
downloadpdfium-887795881ba3babdc1d2c310e3b68deb5ad9b53b.tar.xz
fxcrt convergence - master side
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1410933002 .
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fxge/agg/src/fx_agg_driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fxge/agg/src/fx_agg_driver.cpp b/core/src/fxge/agg/src/fx_agg_driver.cpp
index fd3ea25096..d9783d174b 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 @@ FX_BOOL CFX_AggDeviceDriver::SetClip_PathFill(
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 @@ FX_BOOL CFX_AggDeviceDriver::SetClip_PathStroke(
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));
}