OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 */ | 57 */ |
58 WebInspector.LayerDetailsView.CompositingReasonDetail = { | 58 WebInspector.LayerDetailsView.CompositingReasonDetail = { |
59 "transform3D": WebInspector.UIString("Composition due to association with an
element with a CSS 3D transform."), | 59 "transform3D": WebInspector.UIString("Composition due to association with an
element with a CSS 3D transform."), |
60 "video": WebInspector.UIString("Composition due to association with a <video
> element."), | 60 "video": WebInspector.UIString("Composition due to association with a <video
> element."), |
61 "canvas": WebInspector.UIString("Composition due to the element being a <can
vas> element."), | 61 "canvas": WebInspector.UIString("Composition due to the element being a <can
vas> element."), |
62 "plugin": WebInspector.UIString("Composition due to association with a plugi
n."), | 62 "plugin": WebInspector.UIString("Composition due to association with a plugi
n."), |
63 "iFrame": WebInspector.UIString("Composition due to association with an <ifr
ame> element."), | 63 "iFrame": WebInspector.UIString("Composition due to association with an <ifr
ame> element."), |
64 "backfaceVisibilityHidden": WebInspector.UIString("Composition due to associ
ation with an element with a \"backface-visibility: hidden\" style."), | 64 "backfaceVisibilityHidden": WebInspector.UIString("Composition due to associ
ation with an element with a \"backface-visibility: hidden\" style."), |
65 "animation": WebInspector.UIString("Composition due to association with an a
nimated element."), | 65 "animation": WebInspector.UIString("Composition due to association with an a
nimated element."), |
66 "filters": WebInspector.UIString("Composition due to association with an ele
ment with CSS filters applied."), | 66 "filters": WebInspector.UIString("Composition due to association with an ele
ment with CSS filters applied."), |
67 "positionFixed": WebInspector.UIString("Composition due to association with
an element with a \"position: fixed\" style."), | 67 "scrollDependentPosition": WebInspector.UIString("Composition due to associa
tion with an element with a \"position: fixed\" or \"position: sticky\" style.")
, |
68 // FIXME: Can we remove this entry now that position: sticky has been remove
d? | |
69 "positionSticky": WebInspector.UIString("Composition due to association with
an element with a \"position: sticky\" style."), | |
70 "overflowScrollingTouch": WebInspector.UIString("Composition due to associat
ion with an element with a \"overflow-scrolling: touch\" style."), | 68 "overflowScrollingTouch": WebInspector.UIString("Composition due to associat
ion with an element with a \"overflow-scrolling: touch\" style."), |
71 "blending": WebInspector.UIString("Composition due to association with an el
ement that has blend mode other than \"normal\"."), | 69 "blending": WebInspector.UIString("Composition due to association with an el
ement that has blend mode other than \"normal\"."), |
72 "assumedOverlap": WebInspector.UIString("Composition due to association with
an element that may overlap other composited elements."), | 70 "assumedOverlap": WebInspector.UIString("Composition due to association with
an element that may overlap other composited elements."), |
73 "overlap": WebInspector.UIString("Composition due to association with an ele
ment overlapping other composited elements."), | 71 "overlap": WebInspector.UIString("Composition due to association with an ele
ment overlapping other composited elements."), |
74 "negativeZIndexChildren": WebInspector.UIString("Composition due to associat
ion with an element with descendants that have a negative z-index."), | 72 "negativeZIndexChildren": WebInspector.UIString("Composition due to associat
ion with an element with descendants that have a negative z-index."), |
75 "transformWithCompositedDescendants": WebInspector.UIString("Composition due
to association with an element with composited descendants."), | 73 "transformWithCompositedDescendants": WebInspector.UIString("Composition due
to association with an element with composited descendants."), |
76 "opacityWithCompositedDescendants": WebInspector.UIString("Composition due t
o association with an element with opacity applied and composited descendants.")
, | 74 "opacityWithCompositedDescendants": WebInspector.UIString("Composition due t
o association with an element with opacity applied and composited descendants.")
, |
77 "maskWithCompositedDescendants": WebInspector.UIString("Composition due to a
ssociation with a masked element and composited descendants."), | 75 "maskWithCompositedDescendants": WebInspector.UIString("Composition due to a
ssociation with a masked element and composited descendants."), |
78 "reflectionWithCompositedDescendants": WebInspector.UIString("Composition du
e to association with an element with a reflection and composited descendants.")
, | 76 "reflectionWithCompositedDescendants": WebInspector.UIString("Composition du
e to association with an element with a reflection and composited descendants.")
, |
79 "filterWithCompositedDescendants": WebInspector.UIString("Composition due to
association with an element with CSS filters applied and composited descendants
."), | 77 "filterWithCompositedDescendants": WebInspector.UIString("Composition due to
association with an element with CSS filters applied and composited descendants
."), |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 var text = WebInspector.LayerDetailsView.CompositingReasonDetail[com
positingReasons[i]] || compositingReasons[i]; | 215 var text = WebInspector.LayerDetailsView.CompositingReasonDetail[com
positingReasons[i]] || compositingReasons[i]; |
218 // If the text is more than one word but does not terminate with per
iod, add the period. | 216 // If the text is more than one word but does not terminate with per
iod, add the period. |
219 if (/\s.*[^.]$/.test(text)) | 217 if (/\s.*[^.]$/.test(text)) |
220 text += "."; | 218 text += "."; |
221 list.createChild("li").textContent = text; | 219 list.createChild("li").textContent = text; |
222 } | 220 } |
223 }, | 221 }, |
224 | 222 |
225 __proto__: WebInspector.Widget.prototype | 223 __proto__: WebInspector.Widget.prototype |
226 } | 224 } |
OLD | NEW |