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

Unified Diff: core/fpdfapi/fpdf_page/cpdf_colorstate.cpp

Issue 1918113002: Clean up CPDF_Page. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: delete more dead code Created 4 years, 8 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
Index: core/fpdfapi/fpdf_page/cpdf_colorstate.cpp
diff --git a/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp b/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp
index 580b58a06a2498d517ea28b35a1b9410a1c5de12..ee34b0ea4bc24d0e64417887fb211a8e15945d5b 100644
--- a/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp
@@ -50,7 +50,7 @@ void CPDF_ColorState::SetFillPattern(CPDF_Pattern* pPattern,
int R, G, B;
FX_BOOL ret = pData->m_FillColor.GetRGB(R, G, B);
if (pPattern->m_PatternType == 1 &&
- ((CPDF_TilingPattern*)pPattern)->m_bColored && !ret) {
+ ((CPDF_TilingPattern*)pPattern)->colored() && !ret) {
dsinclair 2016/04/26 14:08:23 nit: static_cast, and below.
Lei Zhang 2016/04/26 17:25:37 Fixed.
pData->m_FillRGB = 0x00BFBFBF;
return;
}
@@ -65,7 +65,7 @@ void CPDF_ColorState::SetStrokePattern(CPDF_Pattern* pPattern,
int R, G, B;
FX_BOOL ret = pData->m_StrokeColor.GetRGB(R, G, B);
if (pPattern->m_PatternType == 1 &&
- ((CPDF_TilingPattern*)pPattern)->m_bColored && !ret) {
+ ((CPDF_TilingPattern*)pPattern)->colored() && !ret) {
pData->m_StrokeRGB = 0x00BFBFBF;
return;
}

Powered by Google App Engine
This is Rietveld 408576698