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

Side by Side Diff: xfa/fwl/cfwl_caret.cpp

Issue 2560873005: Cleanup CFWL_Widget code to return CFX_RectFs where appropriate (Closed)
Patch Set: Review feedback Created 4 years 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 | « no previous file | xfa/fwl/cfwl_checkbox.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 "xfa/fwl/cfwl_caret.h" 7 #include "xfa/fwl/cfwl_caret.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 void CFWL_Caret::Timer::Run(CFWL_TimerInfo* pTimerInfo) { 102 void CFWL_Caret::Timer::Run(CFWL_TimerInfo* pTimerInfo) {
103 CFWL_Caret* pCaret = static_cast<CFWL_Caret*>(m_pWidget); 103 CFWL_Caret* pCaret = static_cast<CFWL_Caret*>(m_pWidget);
104 if (!(pCaret->GetStates() & FWL_STATE_CAT_HightLight)) 104 if (!(pCaret->GetStates() & FWL_STATE_CAT_HightLight))
105 pCaret->SetStates(FWL_STATE_CAT_HightLight); 105 pCaret->SetStates(FWL_STATE_CAT_HightLight);
106 else 106 else
107 pCaret->RemoveStates(FWL_STATE_CAT_HightLight); 107 pCaret->RemoveStates(FWL_STATE_CAT_HightLight);
108 108
109 CFX_RectF rt = pCaret->GetWidgetRect(); 109 CFX_RectF rt = pCaret->GetWidgetRect();
110 rt.Set(0, 0, rt.width + 1, rt.height); 110 rt.Set(0, 0, rt.width + 1, rt.height);
111 pCaret->Repaint(&rt); 111 pCaret->RepaintRect(rt);
112 } 112 }
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/cfwl_checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698