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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_Utils.cpp

Issue 1565803003: Return const-ref object in a few CPWL_Wnd getters. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: remove dead code Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Wnd.h ('k') | fpdfsdk/src/pdfwindow/PWL_Wnd.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" 7 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h"
8 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" 8 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h"
9 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" 9 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h"
10 10
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 } 1462 }
1463 1463
1464 void CPWL_Utils::DrawBorder(CFX_RenderDevice* pDevice, 1464 void CPWL_Utils::DrawBorder(CFX_RenderDevice* pDevice,
1465 CFX_Matrix* pUser2Device, 1465 CFX_Matrix* pUser2Device,
1466 const CPDF_Rect& rect, 1466 const CPDF_Rect& rect,
1467 FX_FLOAT fWidth, 1467 FX_FLOAT fWidth,
1468 const CPWL_Color& color, 1468 const CPWL_Color& color,
1469 const CPWL_Color& crLeftTop, 1469 const CPWL_Color& crLeftTop,
1470 const CPWL_Color& crRightBottom, 1470 const CPWL_Color& crRightBottom,
1471 int32_t nStyle, 1471 int32_t nStyle,
1472 const CPWL_Dash& dash,
1473 int32_t nTransparancy) { 1472 int32_t nTransparancy) {
1474 FX_FLOAT fLeft = rect.left; 1473 FX_FLOAT fLeft = rect.left;
1475 FX_FLOAT fRight = rect.right; 1474 FX_FLOAT fRight = rect.right;
1476 FX_FLOAT fTop = rect.top; 1475 FX_FLOAT fTop = rect.top;
1477 FX_FLOAT fBottom = rect.bottom; 1476 FX_FLOAT fBottom = rect.bottom;
1478 1477
1479 if (fWidth > 0.0f) { 1478 if (fWidth > 0.0f) {
1480 FX_FLOAT fHalfWidth = fWidth / 2.0f; 1479 FX_FLOAT fHalfWidth = fWidth / 2.0f;
1481 1480
1482 switch (nStyle) { 1481 switch (nStyle) {
(...skipping 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after
3675 break; 3674 break;
3676 case COLORTYPE_RGB: 3675 case COLORTYPE_RGB:
3677 CPWL_Utils::ConvertCMYK2RGB(fColor1, fColor2, fColor3, fColor4, 3676 CPWL_Utils::ConvertCMYK2RGB(fColor1, fColor2, fColor3, fColor4,
3678 fColor1, fColor2, fColor3); 3677 fColor1, fColor2, fColor3);
3679 break; 3678 break;
3680 } 3679 }
3681 break; 3680 break;
3682 } 3681 }
3683 nColorType = other_nColorType; 3682 nColorType = other_nColorType;
3684 } 3683 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Wnd.h ('k') | fpdfsdk/src/pdfwindow/PWL_Wnd.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698