Attachment #148310: patch (untested) for bug #243412

View | Details | Raw Unified | Return to bug 243412 | Differences between
and this patch

Collapse All | Expand All

(-)nsIDOMCSS2Properties.or (-1 / +4 lines)
Line     Link Here 
 Lines 551-557    Link Here 
551
                                        // raises(DOMException) on setting
551
                                        // raises(DOMException) on setting
552
552
553
           /* CSS3 properties */
553
           /* CSS3 properties */
554
           attribute DOMString        opacity;
554
           attribute DOMString        opacity;
555
                                        // raises(DOMException) on setting
555
                                        // raises(DOMException) on setting
556
556
557
};
557
           attribute DOMString        boxSizing;
558
                                        // raises(DOMException) on setting
559
560
};
(-)nsCSSPropList.or (-1 / +1 lines)
Line     Link Here 
 Lines 317-329    Link Here 
317
CSS_PROP_SHORTHAND(border-width, border_width, BorderWidth)
317
CSS_PROP_SHORTHAND(border-width, border_width, BorderWidth)
318
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
318
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
319
CSS_PROP_TABLEBORDER(-x-border-x-spacing, border_x_spacing, BorderXSpacing, Table, mBorderSpacingX, eCSSType_Value, PR_FALSE, nsnull) // XXX bug 3935
319
CSS_PROP_TABLEBORDER(-x-border-x-spacing, border_x_spacing, BorderXSpacing, Table, mBorderSpacingX, eCSSType_Value, PR_FALSE, nsnull) // XXX bug 3935
320
CSS_PROP_TABLEBORDER(-x-border-y-spacing, border_y_spacing, BorderYSpacing, Table, mBorderSpacingY, eCSSType_Value, PR_FALSE, nsnull) // XXX bug 3935
320
CSS_PROP_TABLEBORDER(-x-border-y-spacing, border_y_spacing, BorderYSpacing, Table, mBorderSpacingY, eCSSType_Value, PR_FALSE, nsnull) // XXX bug 3935
321
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
321
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
322
CSS_PROP_POSITION(bottom, bottom, Bottom, Position, mOffset.mBottom, eCSSType_Value, PR_TRUE, nsnull)
322
CSS_PROP_POSITION(bottom, bottom, Bottom, Position, mOffset.mBottom, eCSSType_Value, PR_TRUE, nsnull)
323
CSS_PROP_POSITION(-moz-box-sizing, box_sizing, MozBoxSizing, Position, mBoxSizing, eCSSType_Value, PR_FALSE, kBoxSizingKTable) // XXX bug 3935
323
CSS_PROP_POSITION(box-sizing, box_sizing, BoxSizing, Position, mBoxSizing, eCSSType_Value, PR_FALSE, kBoxSizingKTable) // XXX bug 3935
324
CSS_PROP_TABLEBORDER(caption-side, caption_side, CaptionSide, Table, mCaptionSide, eCSSType_Value, PR_FALSE, kCaptionSideKTable)
324
CSS_PROP_TABLEBORDER(caption-side, caption_side, CaptionSide, Table, mCaptionSide, eCSSType_Value, PR_FALSE, kCaptionSideKTable)
325
CSS_PROP_DISPLAY(clear, clear, Clear, Display, mClear, eCSSType_Value, PR_FALSE, kClearKTable)
325
CSS_PROP_DISPLAY(clear, clear, Clear, Display, mClear, eCSSType_Value, PR_FALSE, kClearKTable)
326
CSS_PROP_DISPLAY(clip, clip, Clip, Display, mClip, eCSSType_Rect, PR_FALSE, nsnull)
326
CSS_PROP_DISPLAY(clip, clip, Clip, Display, mClip, eCSSType_Rect, PR_FALSE, nsnull)
327
CSS_PROP_COLOR(color, color, Color, Color, mColor, eCSSType_Value, PR_FALSE, nsnull)
327
CSS_PROP_COLOR(color, color, Color, Color, mColor, eCSSType_Value, PR_FALSE, nsnull)
328
CSS_PROP_CONTENT(content, content, Content, Content, mContent, eCSSType_ValueList, PR_FALSE, kContentKTable)
328
CSS_PROP_CONTENT(content, content, Content, Content, mContent, eCSSType_ValueList, PR_FALSE, kContentKTable)
329
CSS_PROP_NOTIMPLEMENTED(counter-increment, counter_increment, CounterIncrement)
329
CSS_PROP_NOTIMPLEMENTED(counter-increment, counter_increment, CounterIncrement)
(-)nsDOMCSSDeclaration.or (+1 lines)
Line     Link Here 
 Lines 344-354    Link Here 
344
#define CSS_PROP_SHORTHAND(name_, id_, method_) \
344
#define CSS_PROP_SHORTHAND(name_, id_, method_) \
345
  CSS_PROP(name_, id_, method_, , , , ,)
345
  CSS_PROP(name_, id_, method_, , , , ,)
346
#include "nsCSSPropList.h"
346
#include "nsCSSPropList.h"
347
347
348
// Aliases
348
// Aliases
349
CSS_PROP(opacity, X, MozOpacity, X, X, X, X, X)
349
CSS_PROP(opacity, X, MozOpacity, X, X, X, X, X)
350
CSS_PROP(box-sizing, X, MozBoxSizing, X, X, X, X, X)
350
351
351
#undef CSS_PROP_SHORTHAND
352
#undef CSS_PROP_SHORTHAND
352
#undef CSS_PROP_NOTIMPLEMENTED
353
#undef CSS_PROP_NOTIMPLEMENTED
353
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
354
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
354
#undef CSS_PROP
355
#undef CSS_PROP
(-)nsCSSProps.or (+1 lines)
Line     Link Here 
 Lines 101-112    Link Here 
101
struct CSSPropertyAlias {
101
struct CSSPropertyAlias {
102
  char name[13];
102
  char name[13];
103
  nsCSSProperty id;
103
  nsCSSProperty id;
104
};
104
};
105
105
106
static const CSSPropertyAlias gAliases[] = {
106
static const CSSPropertyAlias gAliases[] = {
107
  { "-moz-box-sizing", eCSSProperty_box_sizing }
107
  { "-moz-opacity", eCSSProperty_opacity }
108
  { "-moz-opacity", eCSSProperty_opacity }
108
};
109
};
109
110
110
nsCSSProperty 
111
nsCSSProperty 
111
nsCSSProps::LookupProperty(const nsACString& aProperty)
112
nsCSSProps::LookupProperty(const nsACString& aProperty)
112
{
113
{

Return to bug 243412