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

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

Issue 1867463002: Make static FX_WCHAR arrays more const. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 8 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 | « no previous file | xfa/fxfa/parser/xfa_document_serialize.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 "xfa/fde/css/fde_cssdatatable.h" 9 #include "xfa/fde/css/fde_cssdatatable.h"
10 #include "xfa/fde/css/fde_csssyntax.h" 10 #include "xfa/fde/css/fde_csssyntax.h"
11 #include "xfa/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{"
22 L"display:table-cell}caption{display:table-caption}th{font-weight:bolder;" 22 L"display:table-cell}caption{display:table-caption}th{font-weight:bolder;"
23 L"text-align:center}caption{text-align:center}" 23 L"text-align:center}caption{text-align:center}"
24 L"body{margin:0}h1{font-size:2em;margin:.67em " 24 L"body{margin:0}h1{font-size:2em;margin:.67em "
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/parser/xfa_document_serialize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698