Add constructor for CPDF_ColorSpace.
authorTom Sepez <tsepez@chromium.org>
Tue, 16 Jun 2015 23:18:47 +0000 (16:18 -0700)
committerTom Sepez <tsepez@chromium.org>
Tue, 16 Jun 2015 23:18:47 +0000 (16:18 -0700)
commitea44bd064a86679a47a7265020f997d6e3b88336
treee74d7540d03da8250bcb2fbae087d0c9ddb94cef
parent5fef754bc09e971f1bf1ba79da98c0a7ee1e1c8d
Add constructor for CPDF_ColorSpace.

Prevents sub-classes from tweaking parent class instance vars.

Also "fix" https://code.google.com/p/pdfium/issues/detail?id=170, assuming 0 is a good value.

BUG=pdfium:170
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1185903002.
core/include/fpdfapi/fpdf_page.h
core/include/fpdfapi/fpdf_resource.h
core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
core/src/fpdfapi/fpdf_page/pageint.h