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

Side by Side Diff: xfa/fde/css/fde_csscache.cpp

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/fde/cfx_wordbreak.h ('k') | xfa/fde/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 "xfa/fde/css/fde_csscache.h" 7 #include "xfa/fde/css/fde_csscache.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fxcrt/include/fx_ext.h" 11 #include "core/fxcrt/fx_ext.h"
12 #include "xfa/fxfa/app/xfa_textlayout.h" 12 #include "xfa/fxfa/app/xfa_textlayout.h"
13 13
14 FDE_CSSCacheItem::FDE_CSSCacheItem(IFDE_CSSStyleSheet* p) 14 FDE_CSSCacheItem::FDE_CSSCacheItem(IFDE_CSSStyleSheet* p)
15 : pStylesheet(p), dwActivity(0) { 15 : pStylesheet(p), dwActivity(0) {
16 pStylesheet->Retain(); 16 pStylesheet->Retain();
17 } 17 }
18 18
19 FDE_CSSCacheItem::~FDE_CSSCacheItem() { 19 FDE_CSSCacheItem::~FDE_CSSCacheItem() {
20 pStylesheet->Release(); 20 pStylesheet->Release();
21 } 21 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 FDE_CSSTagCache* pTop = GetTopElement(); 66 FDE_CSSTagCache* pTop = GetTopElement();
67 FDE_CSSTagCache item(pTop, pTag); 67 FDE_CSSTagCache item(pTop, pTag);
68 m_Stack.Push(item); 68 m_Stack.Push(item);
69 } 69 }
70 70
71 void CFDE_CSSAccelerator::OnLeaveTag(CXFA_CSSTagProvider* pTag) { 71 void CFDE_CSSAccelerator::OnLeaveTag(CXFA_CSSTagProvider* pTag) {
72 ASSERT(m_Stack.GetTopElement()); 72 ASSERT(m_Stack.GetTopElement());
73 ASSERT(m_Stack.GetTopElement()->GetTag() == pTag); 73 ASSERT(m_Stack.GetTopElement()->GetTag() == pTag);
74 m_Stack.Pop(); 74 m_Stack.Pop();
75 } 75 }
OLDNEW
« no previous file with comments | « xfa/fde/cfx_wordbreak.h ('k') | xfa/fde/css/fde_cssdatatable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698