From 38fd84428a1ea007a043be0b7d9b289e47aa5da0 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 15 Sep 2016 10:15:32 -0700 Subject: Rename dictionary set and get methods This Cl makes the Get and Set methods consistenly use {G|S}etFor. BUG=pdfium:596 Review-Url: https://codereview.chromium.org/2334323005 --- core/fxge/dib/fx_dib_engine_unittest.cpp | 4 ++-- core/fxge/skia/fx_skia_device.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'core/fxge') diff --git a/core/fxge/dib/fx_dib_engine_unittest.cpp b/core/fxge/dib/fx_dib_engine_unittest.cpp index d185adf49d..4b4063b7e5 100644 --- a/core/fxge/dib/fx_dib_engine_unittest.cpp +++ b/core/fxge/dib/fx_dib_engine_unittest.cpp @@ -17,8 +17,8 @@ TEST(CStretchEngine, OverflowInCtor) { FX_RECT clip_rect; std::unique_ptr> dict_obj( new CPDF_Dictionary); - dict_obj->SetAt("Width", new CPDF_Number(71000)); - dict_obj->SetAt("Height", new CPDF_Number(12500)); + dict_obj->SetFor("Width", new CPDF_Number(71000)); + dict_obj->SetFor("Height", new CPDF_Number(12500)); std::unique_ptr> stream( new CPDF_Stream(nullptr, 0, dict_obj.release())); CPDF_DIBSource dib_source; diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp index fd4f73972f..d2e4abce92 100644 --- a/core/fxge/skia/fx_skia_device.cpp +++ b/core/fxge/skia/fx_skia_device.cpp @@ -1231,7 +1231,7 @@ FX_BOOL CFX_SkiaDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern, if (nFuncs != 1) // TODO(caryclark) remove this restriction return false; CPDF_Dictionary* pDict = pPattern->GetShadingObject()->GetDict(); - CPDF_Array* pCoords = pDict->GetArrayBy("Coords"); + CPDF_Array* pCoords = pDict->GetArrayFor("Coords"); if (!pCoords) return true; // TODO(caryclark) Respect Domain[0], Domain[1]. (Don't know what they do @@ -1261,7 +1261,7 @@ FX_BOOL CFX_SkiaDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern, return false; } } - CPDF_Array* pArray = pDict->GetArrayBy("Extend"); + CPDF_Array* pArray = pDict->GetArrayFor("Extend"); bool clipStart = !pArray || !pArray->GetIntegerAt(0); bool clipEnd = !pArray || !pArray->GetIntegerAt(1); SkPaint paint; -- cgit v1.2.3