summaryrefslogtreecommitdiff
path: root/core/fxcrt/css/cfx_cssdeclaration.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-08 13:24:36 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-09 14:15:25 +0000
commit073797b6cff9947070077ff4b3cccc63059dc4e5 (patch)
treee7c626bce46462eda02854b66c243a4fa276f585 /core/fxcrt/css/cfx_cssdeclaration.cpp
parent31d706bd8122830a15c574ba461e8f1a41427b9c (diff)
downloadpdfium-073797b6cff9947070077ff4b3cccc63059dc4e5.tar.xz
Fold CFX_IsOnlyValue define into only usage
Change-Id: I2cb20fd00436858f035f984fc104bae2c2d01057 Reviewed-on: https://pdfium-review.googlesource.com/9252 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/css/cfx_cssdeclaration.cpp')
-rw-r--r--core/fxcrt/css/cfx_cssdeclaration.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcrt/css/cfx_cssdeclaration.cpp b/core/fxcrt/css/cfx_cssdeclaration.cpp
index b65429edb7..c89f75c5fd 100644
--- a/core/fxcrt/css/cfx_cssdeclaration.cpp
+++ b/core/fxcrt/css/cfx_cssdeclaration.cpp
@@ -205,7 +205,8 @@ void CFX_CSSDeclaration::AddProperty(const CFX_CSSPropertyTable* pTable,
AddPropertyHolder(pTable->eName, pCSSValue, bImportant);
return;
}
- if (CFX_IsOnlyValue(dwType, g_ValueGuessOrder[i]))
+
+ if ((dwType & ~(g_ValueGuessOrder[i])) == CFX_CSSVALUETYPE_Primitive)
return;
}
break;