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

Side by Side Diff: xfa/src/fdp/src/css/fde_csscache.cpp

Issue 1722803002: Sort includes in xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review cleanups Created 4 years, 10 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 | « xfa/src/fdp/src/css/fde_csscache.h ('k') | xfa/src/fdp/src/css/fde_cssdatatable.h » ('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 <algorithm> 7 #include <algorithm>
8 8
9 #include "xfa/src/fdp/src/css/fde_csscache.h"
9 #include "xfa/src/foxitlib.h" 10 #include "xfa/src/foxitlib.h"
10 #include "xfa/src/fdp/src/css/fde_csscache.h"
11 _FDE_CSSCACHEITEM::_FDE_CSSCACHEITEM(IFDE_CSSStyleSheet* p) 11 _FDE_CSSCACHEITEM::_FDE_CSSCACHEITEM(IFDE_CSSStyleSheet* p)
12 : pStylesheet(p), dwActivity(0) { 12 : pStylesheet(p), dwActivity(0) {
13 FXSYS_assert(pStylesheet); 13 FXSYS_assert(pStylesheet);
14 pStylesheet->AddRef(); 14 pStylesheet->AddRef();
15 } 15 }
16 _FDE_CSSCACHEITEM::~_FDE_CSSCACHEITEM() { 16 _FDE_CSSCACHEITEM::~_FDE_CSSCACHEITEM() {
17 pStylesheet->Release(); 17 pStylesheet->Release();
18 } 18 }
19 IFDE_CSSStyleSheetCache* IFDE_CSSStyleSheetCache::Create() { 19 IFDE_CSSStyleSheetCache* IFDE_CSSStyleSheetCache::Create() {
20 return new CFDE_CSSStyleSheetCache; 20 return new CFDE_CSSStyleSheetCache;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void CFDE_CSSAccelerator::OnEnterTag(IFDE_CSSTagProvider* pTag) { 138 void CFDE_CSSAccelerator::OnEnterTag(IFDE_CSSTagProvider* pTag) {
139 FDE_CSSTAGCACHE* pTop = GetTopElement(); 139 FDE_CSSTAGCACHE* pTop = GetTopElement();
140 FDE_CSSTAGCACHE item(pTop, pTag); 140 FDE_CSSTAGCACHE item(pTop, pTag);
141 m_Stack.Push(item); 141 m_Stack.Push(item);
142 } 142 }
143 void CFDE_CSSAccelerator::OnLeaveTag(IFDE_CSSTagProvider* pTag) { 143 void CFDE_CSSAccelerator::OnLeaveTag(IFDE_CSSTagProvider* pTag) {
144 FXSYS_assert(m_Stack.GetTopElement()); 144 FXSYS_assert(m_Stack.GetTopElement());
145 FXSYS_assert(m_Stack.GetTopElement()->GetTag() == pTag); 145 FXSYS_assert(m_Stack.GetTopElement()->GetTag() == pTag);
146 m_Stack.Pop(); 146 m_Stack.Pop();
147 } 147 }
OLDNEW
« no previous file with comments | « xfa/src/fdp/src/css/fde_csscache.h ('k') | xfa/src/fdp/src/css/fde_cssdatatable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698