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

Side by Side Diff: third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5

Issue 2887333003: Generate StyleRareInheritedData in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 { 1 {
2 // This file specifies fields in ComputedStyle that we would like to 2 // This file specifies fields in ComputedStyle that we would like to
3 // generate, but are not CSS properties. 3 // generate, but are not CSS properties.
4 4
5 parameters: { 5 parameters: {
6 // If the field has_custom_compare_and_copy, then it does not appear in 6 // If the field has_custom_compare_and_copy, then it does not appear in
7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached. 7 // ComputedStyle::operator== and ComputedStyle::CopyNonInheritedFromCached.
8 has_custom_compare_and_copy: { 8 has_custom_compare_and_copy: {
9 default: false, 9 default: false,
10 }, 10 },
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 default_value: "Color::kBlack", 259 default_value: "Color::kBlack",
260 }, 260 },
261 { 261 {
262 name: "TextAutosizingMultiplier", 262 name: "TextAutosizingMultiplier",
263 inherited: true, 263 inherited: true,
264 field_template: "storage_only", 264 field_template: "storage_only",
265 type_name: "float", 265 type_name: "float",
266 field_group: "inherited", 266 field_group: "inherited",
267 default_value: "1.0", 267 default_value: "1.0",
268 }, 268 },
269 {
270 name: "VisitedLinkTextStrokeColor",
271 inherited: true,
272 field_template: "storage_only",
273 field_type_path: "platform/graphics/Color",
274 default_value: "Color()",
275 field_group: "rare-inherited",
276 },
277 {
278 name: "VisitedLinkTextFillColor",
279 inherited: true,
280 field_template: "storage_only",
281 field_type_path: "platform/graphics/Color",
282 default_value: "Color()",
283 field_group: "rare-inherited",
284 },
285 {
286 name: "VisitedLinkTextEmphasisColor",
287 inherited: true,
288 field_template: "storage_only",
289 field_type_path: "platform/graphics/Color",
290 default_value: "Color()",
291 field_group: "rare-inherited",
292 },
293 {
294 name: "VisitedLinkCaretColor",
295 inherited: true,
296 field_template: "storage_only",
297 field_type_path: "platform/graphics/Color",
298 default_value: "Color()",
299 field_group: "rare-inherited",
300 },
301 {
302 name: "CursorData",
303 inherited: true,
304 field_template: "storage_only",
305 field_type_path: "core/style/CursorList",
306 default_value: "nullptr",
307 wrapper_pointer_name: "Persistent",
308 field_group: "rare-inherited",
309 },
310 {
311 name: "EffectiveZoom",
312 inherited: true,
313 field_template: "storage_only",
314 type_name: "float",
315 default_value: "1.0f",
316 field_group: "rare-inherited",
317 },
318 {
319 name: "TextStrokeColorIsCurrentColor",
320 inherited: true,
321 field_template: "storage_only",
322 type_name: "bool",
323 default_value: "true",
324 field_size: 1,
325 field_group: "rare-inherited",
326 },
327 {
328 name: "TextFillColorIsCurrentColor",
329 inherited: true,
330 field_template: "storage_only",
331 type_name: "bool",
332 default_value: "true",
333 field_size: 1,
334 field_group: "rare-inherited",
335 },
336 {
337 name: "TextEmphasisColorIsCurrentColor",
338 inherited: true,
339 field_template: "storage_only",
340 type_name: "bool",
341 default_value: "true",
342 field_size: 1,
343 field_group: "rare-inherited",
344 },
345 {
346 name: "CaretColorIsCurrentColor",
347 inherited: true,
348 field_template: "storage_only",
349 type_name: "bool",
350 default_value: "false",
351 field_size: 1,
352 field_group: "rare-inherited",
353 },
354 {
355 name: "CaretColorIsAuto",
356 inherited: true,
357 field_template: "storage_only",
358 type_name: "bool",
359 default_value: "true",
360 field_size: 1,
361 field_group: "rare-inherited",
362 },
363 {
364 name: "VisitedLinkTextStrokeColorIsCurrentColor",
365 inherited: true,
366 field_template: "storage_only",
367 type_name: "bool",
368 default_value: "true",
369 field_size: 1,
370 field_group: "rare-inherited",
371 },
372 {
373 name: "VisitedLinkTextFillColorIsCurrentColor",
374 inherited: true,
375 field_template: "storage_only",
376 type_name: "bool",
377 default_value: "true",
378 field_size: 1,
379 field_group: "rare-inherited",
380 },
381 {
382 name: "VisitedLinkTextEmphasisColorIsCurrentColor",
383 inherited: true,
384 field_template: "storage_only",
385 type_name: "bool",
386 default_value: "true",
387 field_size: 1,
388 field_group: "rare-inherited",
389 },
390 {
391 name: "VisitedLinkCaretColorIsCurrentColor",
392 inherited: true,
393 field_template: "storage_only",
394 type_name: "bool",
395 default_value: "false",
396 field_size: 1,
397 field_group: "rare-inherited",
398 },
399 {
400 name: "VisitedLinkCaretColorIsAuto",
401 inherited: true,
402 field_template: "storage_only",
403 type_name: "bool",
404 default_value: "true",
405 field_size: 1,
406 field_group: "rare-inherited",
407 },
408 {
409 name: "TextEmphasisFill",
410 inherited: true,
411 field_template: "storage_only",
412 type_name: "TextEmphasisFill",
413 default_value: "kTextEmphasisFillFilled",
414 field_size: 1,
415 field_group: "rare-inherited",
416 },
417 {
418 name: "TextEmphasisMark",
419 inherited: true,
420 field_template: "storage_only",
421 type_name: "TextEmphasisMark",
422 default_value: "kTextEmphasisMarkNone",
423 field_size: 3,
424 field_group: "rare-inherited",
425 },
426 {
427 name: "TextEmphasisPosition",
428 inherited: true,
429 field_template: "storage_only",
430 type_name: "TextEmphasisPosition",
431 default_value: "kTextEmphasisPositionOver",
432 field_size: 1,
433 field_group: "rare-inherited",
434 },
435 {
436 name: "TextIndentLine",
437 inherited: true,
438 field_template: "storage_only",
439 type_name: "TextIndentLine",
440 default_value: "kTextIndentFirstLine",
441 field_size: 1,
442 field_group: "rare-inherited",
443 },
444 {
445 name: "TextIndentType",
446 inherited: true,
447 field_template: "storage_only",
448 type_name: "TextIndentType",
449 default_value: "kTextIndentNormal",
450 field_size: 1,
451 field_group: "rare-inherited",
452 },
453 // Though will-change is not itself an inherited property, the intent
454 // expressed by 'will-change: contents' includes descendants.
455 {
456 name: "SubtreeWillChangeContents",
457 inherited: true,
458 field_template: "storage_only",
459 type_name: "bool",
460 default_value: "false",
461 field_size: 1,
462 field_group: "rare-inherited",
463 },
464 {
465 name: "SelfOrAncestorHasDirAutoAttribute",
466 inherited: true,
467 field_template: "storage_only",
468 type_name: "bool",
469 default_value: "false",
470 field_size: 1,
471 field_group: "rare-inherited",
472 },
473 {
474 name: "RespectImageOrientation",
475 inherited: true,
476 field_template: "storage_only",
477 type_name: "bool",
478 default_value: "false",
479 field_size: 1,
480 field_group: "rare-inherited",
481 },
482 // Though position: sticky is not itself an inherited property, being a
483 // descendent of a sticky element changes some document lifecycle logic.
484 {
485 name: "SubtreeIsSticky",
486 inherited: true,
487 field_template: "storage_only",
488 type_name: "bool",
489 default_value: "false",
490 field_size: 1,
491 field_group: "rare-inherited",
492 },
493 {
494 name: "HyphenationLimitBefore",
495 inherited: true,
496 field_template: "storage_only",
497 type_name: "short",
498 default_value: "-1",
499 field_group: "rare-inherited",
500 },
501 {
502 name: "HyphenationLimitAfter",
503 inherited: true,
504 field_template: "storage_only",
505 type_name: "short",
506 default_value: "-1",
507 field_group: "rare-inherited",
508 },
509 {
510 name: "HyphenationLimitLines",
511 inherited: true,
512 field_template: "storage_only",
513 type_name: "short",
514 default_value: "-1",
515 field_group: "rare-inherited",
516 },
517 {
518 name: "TextEmphasisCustomMark",
519 inherited: true,
520 field_template: "storage_only",
521 field_type_path: "platform/wtf/text/AtomicString",
522 default_value: "AtomicString()",
523 field_group: "rare-inherited",
524 },
525 {
526 name: "AppliedTextDecorations",
527 inherited: true,
528 field_template: "storage_only",
529 field_type_path: "core/style/AppliedTextDecorationList",
530 default_value: "nullptr",
531 wrapper_pointer_name: "RefPtr",
532 field_group: "rare-inherited",
533 },
534 {
535 name: "Variables",
536 inherited: true,
537 field_template: "storage_only",
538 field_type_path: "core/style/StyleInheritedVariables",
539 default_value: "nullptr",
540 wrapper_pointer_name: "RefPtr",
541 field_group: "rare-inherited",
542 },
269 ], 543 ],
270 } 544 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698