| OLD | NEW | 
|    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 "xfa/fwl/theme/cfwl_edittp.h" |    7 #include "xfa/fwl/theme/cfwl_edittp.h" | 
|    8  |    8  | 
|    9 #include "xfa/fwl/cfwl_edit.h" |    9 #include "xfa/fwl/cfwl_edit.h" | 
|   10 #include "xfa/fwl/cfwl_themebackground.h" |   10 #include "xfa/fwl/cfwl_themebackground.h" | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
|   38     pParams->m_pGraphics->SetLineWidth(fWidth); |   38     pParams->m_pGraphics->SetLineWidth(fWidth); | 
|   39     pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); |   39     pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); | 
|   40     return; |   40     return; | 
|   41   } |   41   } | 
|   42  |   42  | 
|   43   switch (pParams->m_iPart) { |   43   switch (pParams->m_iPart) { | 
|   44     case CFWL_Part::Border: { |   44     case CFWL_Part::Border: { | 
|   45       DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); |   45       DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); | 
|   46       break; |   46       break; | 
|   47     } |   47     } | 
|   48     case CFWL_Part::Edge: { |  | 
|   49       DrawEdge(pParams->m_pGraphics, pParams->m_pWidget->GetStyles(), |  | 
|   50                &pParams->m_rtPart, &pParams->m_matrix); |  | 
|   51       break; |  | 
|   52     } |  | 
|   53     case CFWL_Part::Background: { |   48     case CFWL_Part::Background: { | 
|   54       if (pParams->m_pPath) { |   49       if (pParams->m_pPath) { | 
|   55         CFX_Graphics* pGraphics = pParams->m_pGraphics; |   50         CFX_Graphics* pGraphics = pParams->m_pGraphics; | 
|   56         pGraphics->SaveGraphState(); |   51         pGraphics->SaveGraphState(); | 
|   57         CFX_Color crSelected(FWLTHEME_COLOR_BKSelected); |   52         CFX_Color crSelected(FWLTHEME_COLOR_BKSelected); | 
|   58         pGraphics->SetFillColor(&crSelected); |   53         pGraphics->SetFillColor(&crSelected); | 
|   59         pGraphics->FillPath(pParams->m_pPath, FXFILL_WINDING, |   54         pGraphics->FillPath(pParams->m_pPath, FXFILL_WINDING, | 
|   60                             &pParams->m_matrix); |   55                             &pParams->m_matrix); | 
|   61         pGraphics->RestoreGraphState(); |   56         pGraphics->RestoreGraphState(); | 
|   62       } else { |   57       } else { | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   97  |   92  | 
|   98 void CFWL_EditTP::Initialize() { |   93 void CFWL_EditTP::Initialize() { | 
|   99   InitTTO(); |   94   InitTTO(); | 
|  100   CFWL_WidgetTP::Initialize(); |   95   CFWL_WidgetTP::Initialize(); | 
|  101 } |   96 } | 
|  102  |   97  | 
|  103 void CFWL_EditTP::Finalize() { |   98 void CFWL_EditTP::Finalize() { | 
|  104   FinalizeTTO(); |   99   FinalizeTTO(); | 
|  105   CFWL_WidgetTP::Finalize(); |  100   CFWL_WidgetTP::Finalize(); | 
|  106 } |  101 } | 
| OLD | NEW |