Skip to content

Commit

Permalink
Implement css3 border-image property. (Bug 378217) r=vlad,dbaron,roba…
Browse files Browse the repository at this point in the history
…rnold
  • Loading branch information
Andrew Smith committed Jul 17, 2008
1 parent b5f7c23 commit 8ef9b02
Show file tree
Hide file tree
Showing 73 changed files with 1,993 additions and 125 deletions.
4 changes: 2 additions & 2 deletions content/html/content/src/nsGenericHTMLElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ nsGenericHTMLElement::GetOffsetRect(nsRect& aRect, nsIContent** aOffsetParent)
if (parent &&
parent->GetStylePosition()->mBoxSizing != NS_STYLE_BOX_SIZING_BORDER) {
const nsStyleBorder* border = parent->GetStyleBorder();
origin.x -= border->GetBorderWidth(NS_SIDE_LEFT);
origin.y -= border->GetBorderWidth(NS_SIDE_TOP);
origin.x -= border->GetActualBorderWidth(NS_SIDE_LEFT);
origin.y -= border->GetActualBorderWidth(NS_SIDE_TOP);
}

// XXX We should really consider subtracting out padding for
Expand Down
2 changes: 1 addition & 1 deletion content/html/document/src/nsImageDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ nsImageDocument::CheckOverflowing(PRBool changeState)
nsMargin m;
if (styleContext->GetStyleMargin()->GetMargin(m))
visibleArea.Deflate(m);
m = styleContext->GetStyleBorder()->GetBorder();
m = styleContext->GetStyleBorder()->GetActualBorder();
visibleArea.Deflate(m);
if (styleContext->GetStylePadding()->GetPadding(m))
visibleArea.Deflate(m);
Expand Down
6 changes: 5 additions & 1 deletion dom/public/idl/css/nsIDOMCSS2Properties.idl
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ interface nsIDOMCSS2Properties : nsISupports
// raises(DOMException) on setting
};

[scriptable, uuid(816581b0-3d89-11dd-ae16-0800200c9a66)]
[scriptable, uuid(f1781ae4-00e6-4751-8698-2925f925fd76)]
interface nsIDOMNSCSS2Properties : nsIDOMCSS2Properties
{
/* Non-DOM 2 extensions */
Expand Down Expand Up @@ -596,4 +596,8 @@ interface nsIDOMNSCSS2Properties : nsIDOMCSS2Properties

attribute DOMString MozBoxShadow;
// raises(DOMException) on setting

attribute DOMString MozBorderImage;
// raises(DOMException) on setting

};
3 changes: 2 additions & 1 deletion gfx/thebes/public/gfxContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ class THEBES_API gfxContext {
* Uses a surface for drawing. This is a shorthand for creating a
* pattern and setting it.
*
* @param offset ?
* @param offset from the source surface, to use only part of it.
* May need to make it negative.
*/
void SetSource(gfxASurface *surface, const gfxPoint& offset = gfxPoint(0.0, 0.0));

Expand Down
Loading

0 comments on commit 8ef9b02

Please sign in to comment.