OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |