aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-10-21 17:58:56 +0530
committerGitHub <noreply@github.com>2024-10-21 12:28:56 +0000
commit9acb25521e433bdea49866e4ecb6a9f4e90b0663 (patch)
tree96c99cdf3e5f4c157dbfb08eff8240d9dff55bfc /components/script/dom/bindings/codegen
parent66695d2f7ee25782d3edfca32b74ff14bc9faa84 (diff)
downloadservo-9acb25521e433bdea49866e4ecb6a9f4e90b0663.tar.gz
servo-9acb25521e433bdea49866e4ecb6a9f4e90b0663.zip
CanGc changes from fontfaceset.rs (#33920)
* CanGc changes from fontfaceset.rs Signed-off-by: L Ashwin B <lashwinib@gmail.com> * Update components/script/dom/bindings/codegen/Bindings.conf Co-authored-by: Josh Matthews <josh@joshmatthews.net> Signed-off-by: chickenleaf <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com> Signed-off-by: chickenleaf <lashwinib@gmail.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r--components/script/dom/bindings/codegen/Bindings.conf32
1 files changed, 25 insertions, 7 deletions
diff --git a/components/script/dom/bindings/codegen/Bindings.conf b/components/script/dom/bindings/codegen/Bindings.conf
index 3ea8afe6d45..896cf1f0314 100644
--- a/components/script/dom/bindings/codegen/Bindings.conf
+++ b/components/script/dom/bindings/codegen/Bindings.conf
@@ -58,7 +58,11 @@ DOMInterfaces = {
},
'CanvasRenderingContext2D': {
- 'canGc': ['GetTransform','GetImageData', 'CreateImageData', 'CreateImageData_'],
+ 'canGc': ['GetTransform','GetImageData', 'CreateImageData', 'CreateImageData_', 'SetFont', 'FillText', 'MeasureText', 'SetStrokeStyle', 'SetFillStyle', 'SetShadowColor'],
+},
+
+'CanvasGradient': {
+ 'canGc': ['AddColorStop'],
},
'DOMImplementation': {
@@ -90,7 +94,7 @@ DOMInterfaces = {
},
'Document': {
- 'canGc': ['Close', 'CreateElement', 'CreateElementNS', 'ImportNode', 'SetTitle', 'Write', 'Writeln', 'CreateEvent', 'CreateRange', 'Open', 'Open_'],
+ 'canGc': ['Close', 'CreateElement', 'CreateElementNS', 'ImportNode', 'SetTitle', 'Write', 'Writeln', 'CreateEvent', 'CreateRange', 'Open', 'Open_', 'Fonts', 'ElementFromPoint', 'ElementsFromPoint'],
},
'DynamicModuleOwner': {
@@ -98,7 +102,7 @@ DOMInterfaces = {
},
'Element': {
- 'canGc': ['SetInnerHTML', 'SetOuterHTML', 'InsertAdjacentHTML', 'GetClientRects', 'GetBoundingClientRect'],
+ 'canGc': ['SetInnerHTML', 'SetOuterHTML', 'InsertAdjacentHTML', 'GetClientRects', 'GetBoundingClientRect', 'SetScrollTop', 'SetScrollLeft', 'Scroll', 'Scroll_', 'ScrollBy', 'ScrollBy_', 'ScrollWidth', 'ScrollHeight', 'ScrollTop', 'ScrollLeft', 'ClientTop', 'ClientLeft', 'ClientWidth', 'ClientHeight'],
},
'ElementInternals': {
@@ -192,6 +196,14 @@ DOMInterfaces = {
'canGc': ['Content'],
},
+'HTMLElement': {
+ 'canGc': ['GetOffsetParent', 'OffsetTop', 'OffsetLeft', 'OffsetWidth', 'OffsetHeight', 'InnerText', 'GetOuterText', 'Focus', 'Blur', 'Click'],
+},
+
+'HTMLImageElement': {
+ 'canGc': ['Width', 'Height'],
+},
+
'HTMLTextAreaElement': {
'canGc': ['ReportValidity'],
},
@@ -213,6 +225,9 @@ DOMInterfaces = {
'canGc': ['GetMetadata'],
},
+'MouseEvent': {
+ 'canGc': ['OffsetX', 'OffsetY'],
+},
'MediaQueryList': {
'weakReferenceable': True,
@@ -239,11 +254,11 @@ DOMInterfaces = {
},
'OffscreenCanvasRenderingContext2D': {
- 'canGc': ['CreateImageData', 'CreateImageData_', 'GetImageData', 'GetTransform'],
+ 'canGc': ['CreateImageData', 'CreateImageData_', 'GetImageData', 'GetTransform', 'SetFont', 'FillText', 'MeasureText', 'SetStrokeStyle', 'SetFillStyle', 'SetShadowColor'],
},
'PaintRenderingContext2D': {
- 'canGc': ['GetTransform'],
+ 'canGc': ['GetTransform', 'SetStrokeStyle', 'SetFillStyle', 'SetShadowColor'],
},
'Promise': {
@@ -272,7 +287,6 @@ DOMInterfaces = {
'canGc': ['Collapse', 'CollapseToEnd', 'CollapseToStart', 'Extend', 'SelectAllChildren', 'SetBaseAndExtent', 'SetPosition'],
},
-
'ServiceWorkerContainer': {
'inRealms': ['Register'],
},
@@ -281,6 +295,10 @@ DOMInterfaces = {
'weakReferenceable': True,
},
+'ShadowRoot': {
+ 'canGc': ['ElementFromPoint', 'ElementsFromPoint'],
+},
+
'SubtleCrypto': {
'inRealms': ['Encrypt', 'Decrypt', 'GenerateKey', 'ImportKey', 'ExportKey']
},
@@ -305,7 +323,7 @@ DOMInterfaces = {
},
'Window': {
- 'canGc': ['Stop', 'Fetch', 'Open'],
+ 'canGc': ['Stop', 'Fetch', 'Scroll', 'Scroll_','ScrollBy', 'ScrollBy_', 'Stop', 'Fetch', 'Open'],
'inRealms': ['Fetch', 'GetOpener'],
},