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

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

Issue 2072803002: Make code compile with clang_use_chrome_plugin (final) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 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/css/fde_csscache.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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 : pTag(it.pTag), 49 : pTag(it.pTag),
50 pParent(it.pParent), 50 pParent(it.pParent),
51 dwIDHash(it.dwIDHash), 51 dwIDHash(it.dwIDHash),
52 dwTagHash(it.dwTagHash), 52 dwTagHash(it.dwTagHash),
53 iClassIndex(0), 53 iClassIndex(0),
54 dwClassHashs(1) { 54 dwClassHashs(1) {
55 if (it.dwClassHashs.GetSize() > 0) 55 if (it.dwClassHashs.GetSize() > 0)
56 dwClassHashs.Copy(it.dwClassHashs); 56 dwClassHashs.Copy(it.dwClassHashs);
57 } 57 }
58 58
59 FDE_CSSTagCache::~FDE_CSSTagCache() {}
60
61 CFDE_CSSAccelerator::CFDE_CSSAccelerator() {}
62
63 CFDE_CSSAccelerator::~CFDE_CSSAccelerator() {}
64
59 void CFDE_CSSAccelerator::OnEnterTag(CXFA_CSSTagProvider* pTag) { 65 void CFDE_CSSAccelerator::OnEnterTag(CXFA_CSSTagProvider* pTag) {
60 FDE_CSSTagCache* pTop = GetTopElement(); 66 FDE_CSSTagCache* pTop = GetTopElement();
61 FDE_CSSTagCache item(pTop, pTag); 67 FDE_CSSTagCache item(pTop, pTag);
62 m_Stack.Push(item); 68 m_Stack.Push(item);
63 } 69 }
64 70
65 void CFDE_CSSAccelerator::OnLeaveTag(CXFA_CSSTagProvider* pTag) { 71 void CFDE_CSSAccelerator::OnLeaveTag(CXFA_CSSTagProvider* pTag) {
66 ASSERT(m_Stack.GetTopElement()); 72 ASSERT(m_Stack.GetTopElement());
67 ASSERT(m_Stack.GetTopElement()->GetTag() == pTag); 73 ASSERT(m_Stack.GetTopElement()->GetTag() == pTag);
68 m_Stack.Pop(); 74 m_Stack.Pop();
69 } 75 }
OLDNEW
« no previous file with comments | « xfa/fde/css/fde_csscache.h ('k') | xfa/fde/css/fde_cssdatatable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698