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

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

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 5 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_cssdatatable.cpp ('k') | xfa/fde/fde_gedevice.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/fde/css/fde_cssstylesheet.h" 7 #include "xfa/fde/css/fde_cssstylesheet.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 case FDE_CSSSYNTAXSTATUS_PropertyName: 370 case FDE_CSSSYNTAXSTATUS_PropertyName:
371 case FDE_CSSSYNTAXSTATUS_PropertyValue: 371 case FDE_CSSSYNTAXSTATUS_PropertyValue:
372 break; 372 break;
373 case FDE_CSSSYNTAXSTATUS_DeclClose: 373 case FDE_CSSSYNTAXSTATUS_DeclClose:
374 return FDE_CSSSYNTAXSTATUS_None; 374 return FDE_CSSSYNTAXSTATUS_None;
375 FDE_CSSSWITCHDEFAULTS(); 375 FDE_CSSSWITCHDEFAULTS();
376 } 376 }
377 } 377 }
378 } 378 }
379 379
380 CFDE_CSSStyleRule::CFDE_CSSStyleRule() : m_ppSelector(NULL), m_iSelectors(0) {} 380 CFDE_CSSStyleRule::CFDE_CSSStyleRule()
381 : m_ppSelector(nullptr), m_iSelectors(0) {}
381 382
382 int32_t CFDE_CSSStyleRule::CountSelectorLists() const { 383 int32_t CFDE_CSSStyleRule::CountSelectorLists() const {
383 return m_iSelectors; 384 return m_iSelectors;
384 } 385 }
385 386
386 CFDE_CSSSelector* CFDE_CSSStyleRule::GetSelectorList(int32_t index) const { 387 CFDE_CSSSelector* CFDE_CSSStyleRule::GetSelectorList(int32_t index) const {
387 return m_ppSelector[index]; 388 return m_ppSelector[index];
388 } 389 }
389 390
390 CFDE_CSSDeclaration* CFDE_CSSStyleRule::GetDeclaration() { 391 CFDE_CSSDeclaration* CFDE_CSSStyleRule::GetDeclaration() {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 if (!pPersudoFirst) 577 if (!pPersudoFirst)
577 return pFirst; 578 return pFirst;
578 579
579 pPersudoLast->SetNext(pFirst); 580 pPersudoLast->SetNext(pFirst);
580 return pPersudoFirst; 581 return pPersudoFirst;
581 } 582 }
582 583
583 CFDE_CSSDeclaration* CFDE_CSSFontFaceRule::GetDeclaration() { 584 CFDE_CSSDeclaration* CFDE_CSSFontFaceRule::GetDeclaration() {
584 return &m_Declaration; 585 return &m_Declaration;
585 } 586 }
OLDNEW
« no previous file with comments | « xfa/fde/css/fde_cssdatatable.cpp ('k') | xfa/fde/fde_gedevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698