| { |
| // This file specifies the fields we want to diff in the various diff functions |
| // in ComputedStyle. |
| |
| parameters: { |
| // The name parameter represents the name of the function to be created. |
| |
| fields_to_diff: { |
| }, |
| |
| // A list of methods to diff (these can be public getters of fields or |
| // functions that use fields to determine a value). |
| // Each entry is expressed as a dict of two fields. |
| // The fields are method - the method to be diffed and field_dependencies |
| // which lists the properties this method depends on. |
| methods_to_diff: { |
| default: [], |
| }, |
| }, |
| data: [ |
| { |
| name: "ScrollAnchorDisablingPropertyChanged", |
| fields_to_diff: ["width", "min-width", "max-width", "height", "min-height", "max-height", "margin-top", "margin-left", "margin-right", "margin-bottom", |
| "left", "right", "top", "bottom", "padding-top", |
| "padding-left", "padding-right", "padding-bottom"] |
| }, |
| { |
| name: "DiffNeedsFullLayoutAndPaintInvalidation", |
| fields_to_diff: ["padding-top", "padding-left", "padding-right", |
| "padding-bottom", "line-height", "font", "-webkit-border-horizontal-spacing", "-webkit-border-vertical-spacing"], |
| methods_to_diff: [ |
| { |
| method: "BorderLeftWidth()", |
| field_dependencies: ["border-left-width"] |
| }, |
| { |
| method: "BorderTopWidth()", |
| field_dependencies: ["border-top-width"] |
| }, |
| { |
| method: "BorderBottomWidth()", |
| field_dependencies: ["border-bottom-width"] |
| }, |
| { |
| method: "BorderRightWidth()", |
| field_dependencies: ["border-right-width"] |
| } |
| ] |
| }, |
| { |
| name: "DiffNeedsFullLayout", |
| fields_to_diff: ["width", "min-width", "max-width", "height", "min-height", "max-height", "box-sizing"] |
| } |
| ], |
| } |