diff options
author | Pale Moon <git-repo@palemoon.org> | 2014-08-16 16:05:11 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2014-08-16 16:05:11 +0200 |
commit | 2a27aa6ab63f71e84acaf0dd6d4442a2f613e570 (patch) | |
tree | 519ba0a1632c3cec12d66e41d85bceb7f03093f0 | |
parent | 18027835c9e70f7d3ef9ff3cc8037f683f7981b6 (diff) | |
download | palemoon-gre-2a27aa6ab63f71e84acaf0dd6d4442a2f613e570.tar.gz |
Use un-prefixed CSS box-sizing internally in the browser.
30 files changed, 45 insertions, 48 deletions
diff --git a/browser/base/content/browser.css b/browser/base/content/browser.css index b04241bdc..d7a1c3591 100644 --- a/browser/base/content/browser.css +++ b/browser/base/content/browser.css @@ -704,7 +704,7 @@ chatbox:-moz-full-screen-ancestor { max-width: none !important; min-height: 0 !important; max-height: none !important; - -moz-box-sizing: border-box !important; + box-sizing: border-box !important; } /* hide chat chrome when chat is fullscreen */ diff --git a/browser/devtools/layoutview/view.css b/browser/devtools/layoutview/view.css index 337d65ded..d9501ef37 100644 --- a/browser/devtools/layoutview/view.css +++ b/browser/devtools/layoutview/view.css @@ -14,7 +14,7 @@ body { } #header { - -moz-box-sizing: border-box; + box-sizing: border-box; font: 12px/16px monospace; width: 100%; padding: 6px 9px; @@ -40,7 +40,7 @@ body { #main { margin: 0 10px 10px 10px; - -moz-box-sizing: border-box; + box-sizing: border-box; width: calc(100% - 2 * 10px); position: absolute; border-width: 1px; diff --git a/browser/devtools/profiler/cleopatra/css/ui.css b/browser/devtools/profiler/cleopatra/css/ui.css index a0e5bb6be..bb9b63ca3 100644 --- a/browser/devtools/profiler/cleopatra/css/ui.css +++ b/browser/devtools/profiler/cleopatra/css/ui.css @@ -203,7 +203,6 @@ body { white-space:pre; } .sideBar { - -moz-box-sizing: border-box; box-sizing: border-box; position: absolute; left: 0; diff --git a/browser/extensions/pdfjs/content/web/viewer.css b/browser/extensions/pdfjs/content/web/viewer.css index 46a7c6f38..d531f3674 100644 --- a/browser/extensions/pdfjs/content/web/viewer.css +++ b/browser/extensions/pdfjs/content/web/viewer.css @@ -887,8 +887,6 @@ html[dir='rtl'] .toolbarButton.pageDown::before { } .toolbarButton.bookmark { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; box-sizing: border-box; margin-top: 3px; padding-top: 4px; diff --git a/browser/metro/theme/platform.css b/browser/metro/theme/platform.css index f30f84efc..a1301a391 100644 --- a/browser/metro/theme/platform.css +++ b/browser/metro/theme/platform.css @@ -451,7 +451,7 @@ notification { richgrid { display: -moz-box; - -moz-box-sizing: border-box; + box-sizing: border-box; } richgrid .meta-grid { @@ -465,7 +465,7 @@ richgriditem { richgriditem .richgrid-item-content { border: @metro_border_thin@ solid @tile_border_color@; box-shadow: 0 0 @metro_spacing_snormal@ rgba(0, 0, 0, 0.1); - -moz-box-sizing: border-box; + box-sizing: border-box; padding: 10px 8px 6px 8px; position: relative; } diff --git a/browser/themes/linux/devtools/computedview.css b/browser/themes/linux/devtools/computedview.css index 899565893..299c606ec 100644 --- a/browser/themes/linux/devtools/computedview.css +++ b/browser/themes/linux/devtools/computedview.css @@ -4,7 +4,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * { - -moz-box-sizing: border-box; + box-sizing: border-box; } :root { diff --git a/browser/themes/linux/devtools/font-inspector.css b/browser/themes/linux/devtools/font-inspector.css index df8fb3ef6..dff3abb30 100644 --- a/browser/themes/linux/devtools/font-inspector.css +++ b/browser/themes/linux/devtools/font-inspector.css @@ -1,5 +1,5 @@ * { - -moz-box-sizing: border-box; + box-sizing: border-box; } body { diff --git a/browser/themes/linux/devtools/layoutview.css b/browser/themes/linux/devtools/layoutview.css index 49420db11..14e10dfd3 100644 --- a/browser/themes/linux/devtools/layoutview.css +++ b/browser/themes/linux/devtools/layoutview.css @@ -12,7 +12,7 @@ .theme-body { color: hsl(210,100%,85%); - -moz-box-sizing: border-box; + box-sizing: border-box; } #main { diff --git a/browser/themes/osx/devtools/computedview.css b/browser/themes/osx/devtools/computedview.css index 4f6c05b67..772fc5bd7 100644 --- a/browser/themes/osx/devtools/computedview.css +++ b/browser/themes/osx/devtools/computedview.css @@ -22,7 +22,7 @@ /* From content */ * { - -moz-box-sizing: border-box; + box-sizing: border-box; } :root { diff --git a/browser/themes/osx/devtools/font-inspector.css b/browser/themes/osx/devtools/font-inspector.css index df8fb3ef6..dff3abb30 100644 --- a/browser/themes/osx/devtools/font-inspector.css +++ b/browser/themes/osx/devtools/font-inspector.css @@ -1,5 +1,5 @@ * { - -moz-box-sizing: border-box; + box-sizing: border-box; } body { diff --git a/browser/themes/osx/devtools/layoutview.css b/browser/themes/osx/devtools/layoutview.css index 49420db11..14e10dfd3 100644 --- a/browser/themes/osx/devtools/layoutview.css +++ b/browser/themes/osx/devtools/layoutview.css @@ -12,7 +12,7 @@ .theme-body { color: hsl(210,100%,85%); - -moz-box-sizing: border-box; + box-sizing: border-box; } #main { diff --git a/browser/themes/windows/devtools/computedview.css b/browser/themes/windows/devtools/computedview.css index 4f6c05b67..772fc5bd7 100644 --- a/browser/themes/windows/devtools/computedview.css +++ b/browser/themes/windows/devtools/computedview.css @@ -22,7 +22,7 @@ /* From content */ * { - -moz-box-sizing: border-box; + box-sizing: border-box; } :root { diff --git a/browser/themes/windows/devtools/font-inspector.css b/browser/themes/windows/devtools/font-inspector.css index df8fb3ef6..dff3abb30 100644 --- a/browser/themes/windows/devtools/font-inspector.css +++ b/browser/themes/windows/devtools/font-inspector.css @@ -1,5 +1,5 @@ * { - -moz-box-sizing: border-box; + box-sizing: border-box; } body { diff --git a/browser/themes/windows/devtools/layoutview.css b/browser/themes/windows/devtools/layoutview.css index 49420db11..14e10dfd3 100644 --- a/browser/themes/windows/devtools/layoutview.css +++ b/browser/themes/windows/devtools/layoutview.css @@ -12,7 +12,7 @@ .theme-body { color: hsl(210,100%,85%); - -moz-box-sizing: border-box; + box-sizing: border-box; } #main { diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 887c5d916..49438a99b 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -2717,7 +2717,7 @@ nsLayoutUtils::IntrinsicForContainer(nsRenderingContext *aRenderingContext, // -moz-fit-content and -moz-available enumerated widths compute intrinsic // widths just like auto. // For -moz-max-content and -moz-min-content, we handle them like - // specified widths, but ignore -moz-box-sizing. + // specified widths, but ignore box-sizing. boxSizing = NS_STYLE_BOX_SIZING_CONTENT; } else if (!styleWidth.ConvertsToLength() && !(haveFixedMinWidth && haveFixedMaxWidth && maxw <= minw)) { diff --git a/layout/base/nsLayoutUtils.h b/layout/base/nsLayoutUtils.h index 9c56fd815..454d3b991 100644 --- a/layout/base/nsLayoutUtils.h +++ b/layout/base/nsLayoutUtils.h @@ -950,9 +950,9 @@ public: * @param aFrame Frame whose (min-/max-/)width is being computed * @param aContainingBlockWidth Width of aFrame's containing block. * @param aContentEdgeToBoxSizing The sum of any left/right padding and - * border that goes inside the rect chosen by -moz-box-sizing. + * border that goes inside the rect chosen by box-sizing. * @param aBoxSizingToMarginEdge The sum of any left/right padding, border, - * and margin that goes outside the rect chosen by -moz-box-sizing. + * and margin that goes outside the rect chosen by box-sizing. * @param aCoord The width value to compute. */ static nscoord ComputeWidthValue( diff --git a/layout/doc/table_reflow_slides.html b/layout/doc/table_reflow_slides.html index 2f59d5d99..9ec9b2312 100644 --- a/layout/doc/table_reflow_slides.html +++ b/layout/doc/table_reflow_slides.html @@ -86,9 +86,9 @@ } table.box { - border-collapse: collapse; + border-collapse: collapse; border: 2px solid black; - -moz-box-sizing: border-box; + box-sizing: border-box; width:98%; height:96%; } diff --git a/layout/generic/nsHTMLReflowState.cpp b/layout/generic/nsHTMLReflowState.cpp index 810513f32..2c0cbd0d6 100644 --- a/layout/generic/nsHTMLReflowState.cpp +++ b/layout/generic/nsHTMLReflowState.cpp @@ -921,7 +921,7 @@ GetIntrinsicSizeFor(nsIFrame* aFrame, nsSize& aIntrinsicSize, nsIAtom* aFrameTyp /** * aInsideBoxSizing returns the part of the horizontal padding, border, - * and margin that goes inside the edge given by -moz-box-sizing; + * and margin that goes inside the edge given by box-sizing; * aOutsideBoxSizing returns the rest. */ void @@ -2186,7 +2186,7 @@ nsCSSOffsetState::InitOffsets(nscoord aHorizontalPercentBasis, // border-collapsed tables don't use any of their padding, and // only part of their border. We need to do this here before we // try to do anything like handling 'auto' widths, - // '-moz-box-sizing', or 'auto' margins. + // 'box-sizing', or 'auto' margins. mComputedPadding.SizeTo(0,0,0,0); mComputedBorderPadding = tableFrame->GetIncludedOuterBCBorder(); } diff --git a/layout/style/forms.css b/layout/style/forms.css index e7ca79e98..64f33548d 100644 --- a/layout/style/forms.css +++ b/layout/style/forms.css @@ -197,7 +197,7 @@ select { word-wrap: normal !important; text-align: start; cursor: default; - -moz-box-sizing: border-box; + box-sizing: border-box; -moz-user-select: none; -moz-appearance: menulist; border-width: 2px; @@ -245,7 +245,7 @@ select > button { /* Make sure to size correctly if the combobox has a non-auto height. */ height: 100% ! important; - -moz-box-sizing: border-box ! important; + box-sizing: border-box ! important; /* Make sure to align properly with the display frame. Note that we @@ -277,7 +277,7 @@ select:empty { -moz-user-select: none; /* Make sure to size correctly if the combobox has a non-auto height. */ height: 100% ! important; - -moz-box-sizing: border-box ! important; + box-sizing: border-box ! important; } option { @@ -480,7 +480,7 @@ input[type="checkbox"] { (Should we maybe set !important on width and height, then?) */ input[type="radio"], input[type="checkbox"] { - -moz-box-sizing: border-box; + box-sizing: border-box; width: 13px; height: 13px; cursor: default; @@ -540,7 +540,7 @@ input[type="submit"] { line-height: normal; white-space: pre; cursor: default; - -moz-box-sizing: border-box; + box-sizing: border-box; -moz-user-select: none; -moz-binding: none; text-align: center; @@ -684,7 +684,7 @@ progress { float: none ! important; position: static ! important; overflow: visible ! important; - -moz-box-sizing: border-box ! important; + box-sizing: border-box ! important; -moz-appearance: progresschunk; height: 100%; diff --git a/layout/style/html.css b/layout/style/html.css index 15e00e996..7acd01d31 100644 --- a/layout/style/html.css +++ b/layout/style/html.css @@ -247,7 +247,7 @@ table { margin-top: 0; margin-bottom: 0; /* XXXldb do we want this if we're border-collapse:collapse ? */ - -moz-box-sizing: border-box; + box-sizing: border-box; text-indent: 0; } @@ -604,7 +604,7 @@ hr { margin: 0.5em auto 0.5em auto; color: gray; -moz-float-edge: margin-box; - -moz-box-sizing: border-box; + box-sizing: border-box; } hr[size="1"] { diff --git a/layout/style/quirk.css b/layout/style/quirk.css index 0665f6cd8..85eaeae3b 100644 --- a/layout/style/quirk.css +++ b/layout/style/quirk.css @@ -226,7 +226,7 @@ img[align=right] { /* Note that all other <input>s already use border-box sizing, so we're ok with this selector */ input:not([type=image]), textarea { - -moz-box-sizing: border-box; + box-sizing: border-box; } /* Quirk: give form margin for compat (b=41806) */ diff --git a/layout/style/ua.css b/layout/style/ua.css index 608d76a98..2e77ace25 100644 --- a/layout/style/ua.css +++ b/layout/style/ua.css @@ -16,12 +16,12 @@ *|*::-moz-table { display: table !important; - -moz-box-sizing: border-box; /* XXX do we really want this? */ + box-sizing: border-box; /* XXX do we really want this? */ } *|*::-moz-inline-table { display: inline-table !important; - -moz-box-sizing: border-box; /* XXX do we really want this? */ + box-sizing: border-box; /* XXX do we really want this? */ } *|*::-moz-table-outer { @@ -246,7 +246,7 @@ max-width: none !important; min-height: 0 !important; max-height: none !important; - -moz-box-sizing: border-box !important; + box-sizing: border-box !important; } /* If there is a full-screen element that is not the root then diff --git a/mobile/android/themes/core/aboutAddons.css b/mobile/android/themes/core/aboutAddons.css index cca788e4f..34a73bd9a 100644 --- a/mobile/android/themes/core/aboutAddons.css +++ b/mobile/android/themes/core/aboutAddons.css @@ -76,7 +76,7 @@ setting { border-top: 2px solid; -moz-border-top-colors: #bac2ac #ffffff; -moz-box-align: center; - -moz-box-sizing: border-box; + box-sizing: border-box; width: 100%; } diff --git a/toolkit/content/textbox.css b/toolkit/content/textbox.css index 411d8f931..9c785585d 100644 --- a/toolkit/content/textbox.css +++ b/toolkit/content/textbox.css @@ -9,14 +9,14 @@ html|*.textbox-input { -moz-appearance: none !important; text-align: inherit; text-shadow: inherit; - -moz-box-sizing: border-box; + box-sizing: border-box; -moz-box-flex: 1; } html|*.textbox-textarea { -moz-appearance: none !important; text-shadow: inherit; - -moz-box-sizing: border-box; + box-sizing: border-box; -moz-box-flex: 1; } diff --git a/toolkit/content/xul.css b/toolkit/content/xul.css index 6201a7c06..a47b2d428 100644 --- a/toolkit/content/xul.css +++ b/toolkit/content/xul.css @@ -18,7 +18,7 @@ -moz-user-focus: ignore; -moz-user-select: none; display: -moz-box; - -moz-box-sizing: border-box; + box-sizing: border-box; } :root { diff --git a/toolkit/themes/linux/mozapps/extensions/extensions.css b/toolkit/themes/linux/mozapps/extensions/extensions.css index 5968095a7..aaf7f3d17 100644 --- a/toolkit/themes/linux/mozapps/extensions/extensions.css +++ b/toolkit/themes/linux/mozapps/extensions/extensions.css @@ -654,7 +654,7 @@ background-repeat: no-repeat; border: 1px threedshadow solid; border-radius: 5px; - -moz-box-sizing: border-box; + box-sizing: border-box; } #detail-screenshot[loading="error"] { diff --git a/toolkit/themes/linux/mozapps/extensions/selectAddons.css b/toolkit/themes/linux/mozapps/extensions/selectAddons.css index 9cf4bd5be..d50f9d2ef 100644 --- a/toolkit/themes/linux/mozapps/extensions/selectAddons.css +++ b/toolkit/themes/linux/mozapps/extensions/selectAddons.css @@ -70,7 +70,7 @@ #select-header .select-cell { -moz-appearance: treeheadercell; - -moz-box-sizing: border-box; + box-sizing: border-box; } .select-keep { @@ -96,7 +96,7 @@ .addon-name, .addon-action-message, .addon-action-update { - -moz-box-sizing: border-box; + box-sizing: border-box; margin: 0; padding-top: 1px; padding-bottom: 2px; diff --git a/toolkit/themes/osx/mozapps/extensions/selectAddons.css b/toolkit/themes/osx/mozapps/extensions/selectAddons.css index c9de09f4c..b5c691737 100644 --- a/toolkit/themes/osx/mozapps/extensions/selectAddons.css +++ b/toolkit/themes/osx/mozapps/extensions/selectAddons.css @@ -65,7 +65,7 @@ .select-cell { -moz-box-align: center; -moz-box-pack: start; - -moz-box-sizing: border-box; + box-sizing: border-box; } #select-header { @@ -98,7 +98,7 @@ .addon-name, .addon-action-message, .addon-action-update { - -moz-box-sizing: border-box; + box-sizing: border-box; margin: 0; padding: 2px 6px; } diff --git a/toolkit/themes/shared/plugins/pluginProblem.css b/toolkit/themes/shared/plugins/pluginProblem.css index ed15c9eb1..b97e561ad 100644 --- a/toolkit/themes/shared/plugins/pluginProblem.css +++ b/toolkit/themes/shared/plugins/pluginProblem.css @@ -21,7 +21,7 @@ .hoverBox { display: table-cell; - -moz-box-sizing: border-box; + box-sizing: border-box; padding: 5px; vertical-align: middle; width: 100%; diff --git a/toolkit/themes/windows/mozapps/extensions/selectAddons.css b/toolkit/themes/windows/mozapps/extensions/selectAddons.css index 6f836d44e..26e595f61 100644 --- a/toolkit/themes/windows/mozapps/extensions/selectAddons.css +++ b/toolkit/themes/windows/mozapps/extensions/selectAddons.css @@ -64,7 +64,7 @@ } #select-header .select-cell { - -moz-box-sizing: border-box; + box-sizing: border-box; } #select-header .select-keep, @@ -102,7 +102,7 @@ .addon-name, .addon-action-message, .addon-action-update { - -moz-box-sizing: border-box; + box-sizing: border-box; margin: 0; padding-top: 1px; padding-bottom: 2px; |