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/src/fde/css/fde_cssstylesheet.h" | 7 #include "xfa/fde/css/fde_cssstylesheet.h" |
8 | 8 |
9 #include "xfa/src/fde/css/fde_cssdatatable.h" | 9 #include "xfa/fde/css/fde_cssdatatable.h" |
10 #include "xfa/src/fde/css/fde_csssyntax.h" | 10 #include "xfa/fde/css/fde_csssyntax.h" |
11 #include "xfa/src/fgas/crt/fgas_codepage.h" | 11 #include "xfa/fgas/crt/fgas_codepage.h" |
12 | 12 |
13 IFDE_CSSStyleSheet* IFDE_CSSStyleSheet::LoadHTMLStandardStyleSheet() { | 13 IFDE_CSSStyleSheet* IFDE_CSSStyleSheet::LoadHTMLStandardStyleSheet() { |
14 static const FX_WCHAR* s_pStyle = | 14 static const FX_WCHAR* s_pStyle = |
15 L"html,address,blockquote,body,dd,div,dl,dt,fieldset,form,frame,frameset," | 15 L"html,address,blockquote,body,dd,div,dl,dt,fieldset,form,frame,frameset," |
16 L"h1,h2,h3,h4,h5,h6,noframes,ol,p,ul,center,dir,hr,menu,pre{display:" | 16 L"h1,h2,h3,h4,h5,h6,noframes,ol,p,ul,center,dir,hr,menu,pre{display:" |
17 L"block}" | 17 L"block}" |
18 L"li{display:list-item}head{display:none}table{display:table}tr{display:" | 18 L"li{display:list-item}head{display:none}table{display:table}tr{display:" |
19 L"table-row}thead{display:table-header-group}tbody{display:table-row-" | 19 L"table-row}thead{display:table-header-group}tbody{display:table-row-" |
20 L"group}tfoot{display:table-footer-group}" | 20 L"group}tfoot{display:table-footer-group}" |
21 L"col{display:table-column}colgroup{display:table-column-group}td,th{" | 21 L"col{display:table-column}colgroup{display:table-column-group}td,th{" |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 return NULL; | 500 return NULL; |
501 } | 501 } |
502 } | 502 } |
503 if (pPersudoFirst == NULL) { | 503 if (pPersudoFirst == NULL) { |
504 return pFirst; | 504 return pFirst; |
505 } else { | 505 } else { |
506 pPersudoLast->SetNext(pFirst); | 506 pPersudoLast->SetNext(pFirst); |
507 return pPersudoFirst; | 507 return pPersudoFirst; |
508 } | 508 } |
509 } | 509 } |
OLD | NEW |