merge mozilla-central to panorama-central
@ -2732,7 +2732,7 @@ nsAccessible::AppendChild(nsAccessible* aChild)
|
||||
if (!mChildren.AppendElement(aChild))
|
||||
return PR_FALSE;
|
||||
|
||||
if (nsAccUtils::IsText(aChild))
|
||||
if (!nsAccUtils::IsEmbeddedObject(aChild))
|
||||
mChildrenFlags = eMixedChildren;
|
||||
|
||||
aChild->BindToParent(this, mChildren.Length() - 1);
|
||||
|
@ -1153,39 +1153,49 @@ let BookmarksMenuButton = {
|
||||
// handled in the onPopupShowing handler, so it does not hit Ts.
|
||||
},
|
||||
|
||||
_popupInitialized: false,
|
||||
_popupNeedsUpdating: true,
|
||||
_popupNeedsUpdate: {},
|
||||
onPopupShowing: function BMB_onPopupShowing(event) {
|
||||
if (!this._popupNeedsUpdating)
|
||||
// Don't handle events for submenus.
|
||||
if (event.target != event.currentTarget)
|
||||
return;
|
||||
this._popupNeedsUpdating = false;
|
||||
|
||||
let viewToolbar = document.getElementById("BMB_viewBookmarksToolbar");
|
||||
if (!this._popupInitialized) {
|
||||
// First popupshowing event, initialize immutable attributes.
|
||||
this._popupInitialized = true;
|
||||
let popup = event.target;
|
||||
let needsUpdate = this._popupNeedsUpdate[popup.id];
|
||||
|
||||
// Check if popup contents need to be updated. Note that if needsUpdate is
|
||||
// undefined we have never seen the popup, thus it should be updated.
|
||||
if (needsUpdate === false)
|
||||
return;
|
||||
this._popupNeedsUpdate[popup.id] = false;
|
||||
|
||||
function getPlacesAnonymousElement(aAnonId)
|
||||
document.getAnonymousElementByAttribute(popup.parentNode,
|
||||
"placesanonid",
|
||||
aAnonId);
|
||||
|
||||
let viewToolbarMenuitem = getPlacesAnonymousElement("view-toolbar");
|
||||
if (viewToolbarMenuitem) {
|
||||
// Update View bookmarks toolbar checkbox menuitem.
|
||||
viewToolbar.setAttribute("toolbarId", this.personalToolbar.id);
|
||||
|
||||
// Need to set the label on Unsorted Bookmarks menu.
|
||||
let unsortedBookmarksElt =
|
||||
document.getElementById("BMB_unsortedBookmarksFolderMenu");
|
||||
unsortedBookmarksElt.label =
|
||||
PlacesUtils.getString("UnsortedBookmarksFolderTitle");
|
||||
viewToolbarMenuitem.setAttribute("checked",
|
||||
!this.personalToolbar.collapsed);
|
||||
}
|
||||
|
||||
// Update View Bookmarks Toolbar checkbox menuitem.
|
||||
viewToolbar.setAttribute("checked", !this.personalToolbar.collapsed);
|
||||
|
||||
// Hide Bookmarks Toolbar menu if the button is next to the bookmarks
|
||||
// toolbar item, show them otherwise.
|
||||
let button = this.button;
|
||||
document.getElementById("BMB_bookmarksToolbarFolderMenu").collapsed =
|
||||
button && button.parentNode == this.bookmarksToolbarItem;
|
||||
let toolbarMenuitem = getPlacesAnonymousElement("toolbar-autohide");
|
||||
if (toolbarMenuitem) {
|
||||
// If bookmarks items are visible, hide Bookmarks Toolbar menu and the
|
||||
// separator after it.
|
||||
toolbarMenuitem.collapsed = toolbarMenuitem.nextSibling.collapsed =
|
||||
isElementVisible(this.bookmarksToolbarItem);
|
||||
}
|
||||
},
|
||||
|
||||
updatePosition: function BMB_updatePosition() {
|
||||
this._popupNeedsUpdating = true;
|
||||
// Popups will have to be updated when the user customizes the UI, or
|
||||
// changes personal toolbar collapsed status. Both of those location call
|
||||
// updatePosition(), so this is the only point asking for popup updates.
|
||||
for (let popupId in this._popupNeedsUpdate) {
|
||||
this._popupNeedsUpdate[popupId] = true;
|
||||
}
|
||||
|
||||
let button = this.button;
|
||||
if (!button)
|
||||
|
@ -613,7 +613,7 @@
|
||||
key="manBookmarkKb"/>
|
||||
<menu id="appmenu_bookmarksMenu"
|
||||
class="split-menuitem-menu">
|
||||
<menupopup id="appmenu_bookmarksMenupopup"
|
||||
<menupopup id="appmenu_bookmarksPopup"
|
||||
placespopup="true"
|
||||
context="placesContext"
|
||||
openInTabs="children"
|
||||
@ -621,16 +621,9 @@
|
||||
onclick="BookmarksEventHandler.onClick(event);"
|
||||
onpopupshowing="BookmarksMenuButton.onPopupShowing(event);
|
||||
if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');
|
||||
this.appendChild(document.getElementById('appmenu_unsortedBookmarks_seperator'));
|
||||
this.appendChild(document.getElementById('appmenu_unsortedBookmarks'));"
|
||||
new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
|
||||
tooltip="bhTooltip"
|
||||
popupsinherittooltip="true">
|
||||
<menuseparator id="appmenu_unsortedBookmarks_seperator"/>
|
||||
<menuitem id="appmenu_unsortedBookmarks"
|
||||
label="&appMenuUnsorted.label;"
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"
|
||||
class="menuitem-iconic"/>
|
||||
<menuitem id="appmenu_showAllBookmarks"
|
||||
label="&showAllBookmarks.label;"
|
||||
command="Browser:ShowAllBookmarks"
|
||||
@ -658,6 +651,25 @@
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<menu id="appmenu_bookmarksToolbar"
|
||||
placesanonid="toolbar-autohide"
|
||||
class="menu-iconic bookmark-item"
|
||||
label="&personalbarCmd.label;"
|
||||
container="true">
|
||||
<menupopup id="appmenu_bookmarksToolbarPopup"
|
||||
placespopup="true"
|
||||
context="placesContext"
|
||||
onpopupshowing="if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<!-- Bookmarks menu items -->
|
||||
<menuseparator builder="end"
|
||||
class="hide-if-empty-places-result"/>
|
||||
<menuitem id="appmenu_unsortedBookmarks"
|
||||
label="&appMenuUnsorted.label;"
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"
|
||||
class="menuitem-iconic"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</hbox>
|
||||
@ -1009,6 +1021,23 @@
|
||||
if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
|
||||
tooltip="bhTooltip" popupsinherittooltip="true">
|
||||
<menuitem id="BMB_viewBookmarksToolbar"
|
||||
placesanonid="view-toolbar"
|
||||
toolbarId="PersonalToolbar"
|
||||
type="checkbox"
|
||||
oncommand="onViewToolbarCommand(event)"
|
||||
label="&viewBookmarksToolbar.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="BMB_bookmarksShowAll"
|
||||
label="&showAllBookmarks.label;"
|
||||
command="Browser:ShowAllBookmarks"
|
||||
key="manBookmarkKb"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="BMB_bookmarkThisPage"
|
||||
class="menuitem-iconic"
|
||||
label="&bookmarkThisPageCmd.label;"
|
||||
command="Browser:AddBookmarkAs"
|
||||
key="addBookmarkAsKb"/>
|
||||
<menuitem id="BMB_subscribeToPageMenuitem"
|
||||
label="&subscribeToPageMenuitem.label;"
|
||||
oncommand="return FeedHandler.subscribeToFeed(null, event);"
|
||||
@ -1022,47 +1051,26 @@
|
||||
oncommand="return FeedHandler.subscribeToFeed(null, event);"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
</menu>
|
||||
<menuitem id="BMB_bookmarkAllTabs"
|
||||
label="&addCurPagesCmd.label;"
|
||||
command="Browser:BookmarkAllTabs"
|
||||
key="bookmarkAllTabsKb"/>
|
||||
<menuitem id="BMB_bookmarksShowAll"
|
||||
label="&showAllBookmarks.label;"
|
||||
command="Browser:ShowAllBookmarks"
|
||||
key="manBookmarkKb"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="BMB_viewBookmarksToolbar"
|
||||
type="checkbox"
|
||||
oncommand="onViewToolbarCommand(event)"
|
||||
label="&viewBookmarksToolbar.label;"/>
|
||||
<menuitem id="BMB_viewBookmarksSidebar"
|
||||
label="&viewBookmarksSidebar.label;"
|
||||
type="checkbox"
|
||||
oncommand="toggleSidebar('viewBookmarksSidebar');"
|
||||
key="viewBookmarksSidebarKb">
|
||||
<observes element="viewBookmarksSidebar" attribute="checked"/>
|
||||
</menuitem>
|
||||
<menuseparator/>
|
||||
<menu id="BMB_bookmarksToolbarFolderMenu"
|
||||
<menu id="BMB_bookmarksToolbar"
|
||||
placesanonid="toolbar-autohide"
|
||||
class="menu-iconic bookmark-item"
|
||||
label="&personalbarCmd.label;"
|
||||
container="true">
|
||||
<menupopup id="BMB_bookmarksToolbarFolderPopup"
|
||||
<menupopup id="BMB_bookmarksToolbarPopup"
|
||||
placespopup="true"
|
||||
context="placesContext"
|
||||
onpopupshowing="if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
|
||||
</menu>
|
||||
<menu id="BMB_unsortedBookmarksFolderMenu"
|
||||
class="menu-iconic bookmark-item"
|
||||
container="true">
|
||||
<menupopup id="BMB_unsortedBookmarksFolderPopup"
|
||||
placespopup="true"
|
||||
context="placesContext"
|
||||
onpopupshowing="if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=UNFILED_BOOKMARKS');"/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<!-- Bookmarks menu items -->
|
||||
<menuseparator builder="end"
|
||||
class="hide-if-empty-places-result"/>
|
||||
<menuitem id="BMB_unsortedBookmarks"
|
||||
label="&bookmarksMenuButton.unsorted.label;"
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"
|
||||
class="menuitem-iconic"/>
|
||||
</menupopup>
|
||||
</toolbarbutton>
|
||||
</toolbaritem>
|
||||
|
@ -149,6 +149,7 @@ can reach it easily. -->
|
||||
|
||||
<!ENTITY bookmarksMenuButton.label "Bookmarks">
|
||||
<!ENTITY bookmarksMenuButton.tooltip "Display your bookmarks">
|
||||
<!ENTITY bookmarksMenuButton.unsorted.label "Unsorted Bookmarks">
|
||||
<!ENTITY viewBookmarksSidebar.label "Show in Sidebar">
|
||||
<!ENTITY viewBookmarksToolbar.label "View Bookmarks Toolbar">
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
af
|
||||
ak
|
||||
be
|
||||
bg
|
||||
br
|
||||
@ -27,6 +28,7 @@ ja linux win32
|
||||
ja-JP-mac osx
|
||||
ko
|
||||
ku
|
||||
lg
|
||||
lt
|
||||
lv
|
||||
nb-NO
|
||||
@ -40,6 +42,7 @@ pt-PT
|
||||
ro
|
||||
ru
|
||||
sk
|
||||
son
|
||||
sv-SE
|
||||
tr
|
||||
uk
|
||||
|
@ -473,11 +473,11 @@ menuitem:not([type]) {
|
||||
}
|
||||
|
||||
#bookmarksToolbarFolderMenu,
|
||||
#BMB_bookmarksToolbarFolderMenu {
|
||||
#BMB_bookmarksToolbar {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
|
||||
}
|
||||
|
||||
#unsortedBookmarksFolderMenu {
|
||||
#BMB_unsortedBookmarks {
|
||||
list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
|
||||
}
|
||||
|
||||
|
@ -281,11 +281,11 @@ toolbarbutton.bookmark-item > menupopup {
|
||||
}
|
||||
|
||||
#bookmarksToolbarFolderMenu,
|
||||
#BMB_bookmarksToolbarFolderMenu {
|
||||
#BMB_bookmarksToolbar {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
|
||||
}
|
||||
|
||||
#BMB_unsortedBookmarksFolderMenu {
|
||||
#BMB_unsortedBookmarks {
|
||||
list-style-image: url("chrome://browser/skin/places/unfiledBookmarks.png");
|
||||
}
|
||||
|
||||
|
@ -274,20 +274,19 @@
|
||||
list-style-image: url("chrome://browser/skin/Privacy-16.png");
|
||||
}
|
||||
|
||||
#appmenu_unsortedBookmarks {
|
||||
list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
|
||||
}
|
||||
|
||||
#appmenu_addons {
|
||||
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
|
||||
}
|
||||
|
||||
#BMB_subscribeToPage:not([disabled]),
|
||||
#BMB_subscribeToPageMenu,
|
||||
#appmenu_subscribeToPage:not([disabled]),
|
||||
#appmenu_subscribeToPageMenu {
|
||||
list-style-image: url("chrome://browser/skin/feeds/feed-icons-16.png");
|
||||
-moz-image-region: rect(0px 16px 16px 0px);
|
||||
}
|
||||
|
||||
#BMB_bookmarkThisPage,
|
||||
#appmenu_bookmarkThisPage {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmark.png");
|
||||
-moz-image-region: rect(0 16px 16px 0);
|
||||
@ -2001,12 +2000,14 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
|
||||
|
||||
/* Bookmarks roots menu-items */
|
||||
#bookmarksToolbarFolderMenu,
|
||||
#BMB_bookmarksToolbarFolderMenu {
|
||||
#appmenu_bookmarksToolbar,
|
||||
#BMB_bookmarksToolbar {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
|
||||
-moz-image-region: auto;
|
||||
}
|
||||
|
||||
#BMB_unsortedBookmarksFolderMenu {
|
||||
#appmenu_unsortedBookmarks,
|
||||
#BMB_unsortedBookmarks {
|
||||
list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
|
||||
-moz-image-region: auto;
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ nsTextNode::BindToAttribute(nsIAttribute* aAttr)
|
||||
nsresult
|
||||
nsTextNode::UnbindFromAttribute()
|
||||
{
|
||||
NS_ASSERTION(GetNodeParent(), "Bind before unbinging!");
|
||||
NS_ASSERTION(GetNodeParent(), "Bind before unbinding!");
|
||||
NS_ASSERTION(GetNodeParent() &&
|
||||
GetNodeParent()->IsNodeOfType(nsINode::eATTRIBUTE),
|
||||
"Use this method only to unbind from an attribute!");
|
||||
|
@ -387,7 +387,7 @@ abstract public class GeckoApp
|
||||
File outFile = new File("/data/data/org.mozilla." + getAppName() +
|
||||
"/" + name);
|
||||
if (outFile.exists() &&
|
||||
outFile.lastModified() >= fileEntry.getTime() &&
|
||||
outFile.lastModified() == fileEntry.getTime() &&
|
||||
outFile.length() == fileEntry.getSize())
|
||||
return;
|
||||
|
||||
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B |
52
layout/reftests/svg/as-image/reftest.list
Normal file
@ -0,0 +1,52 @@
|
||||
# Tests related to SVG being used as an image
|
||||
|
||||
# zoom/
|
||||
include zoom/reftest.list
|
||||
|
||||
# Trivial background-image tests
|
||||
== background-simple-1.html lime100x100-ref.html
|
||||
== background-simple-2.html lime100x100-ref.html
|
||||
|
||||
# Sightly trickier background-image test
|
||||
== background-viewBox-1.html lime100x100-ref.html
|
||||
|
||||
# Tests with -moz-image-rect()
|
||||
== background-image-rect-1svg.html lime100x100-ref.html
|
||||
== background-image-rect-1png.html lime100x100-ref.html
|
||||
== background-image-rect-2.html lime100x100-ref.html
|
||||
|
||||
# Test for -moz-border-image
|
||||
== border-image-simple-1.html lime100x100-ref.html
|
||||
== border-image-simple-2.html lime100x100-ref.html
|
||||
|
||||
# Simple <img> tests
|
||||
== img-simple-1.html lime100x100-ref.html
|
||||
== img-simple-2.html lime100x100-ref.html
|
||||
== img-simple-3.html lime100x100-ref.html
|
||||
== img-simple-4.html lime100x100-ref.html
|
||||
== img-simple-5.html lime100x100-ref.html
|
||||
== img-simple-6.html lime100x100-ref.html
|
||||
== img-simple-7.html lime100x100-ref.html
|
||||
|
||||
# More complex <img> tests
|
||||
== img-content-outside-viewBox-1.html img-content-outside-viewBox-1-ref.html
|
||||
random == img-dyn-1.html img-dyn-1-ref.html # Bug 596478
|
||||
|
||||
# XXXdholbert Some of the tests below fail on Windows 7 right now. Marking them
|
||||
# random-on-windows right now while I investigate.
|
||||
== img-widthAndHeight-meet-1.html img-widthAndHeight-meet-1-ref.html
|
||||
== img-widthAndHeight-meet-2.html img-widthAndHeight-meet-2-ref.html
|
||||
random-if(winWidget) == img-widthAndHeight-slice-1.html img-widthAndHeight-slice-1-ref.html
|
||||
random-if(winWidget) == img-widthAndHeight-slice-2.html img-widthAndHeight-slice-2-ref.html
|
||||
|
||||
random-if(winWidget) == img-height-meet-1.html img-height-meet-1-ref.html
|
||||
== img-height-meet-2.html img-height-meet-2-ref.html
|
||||
random-if(winWidget) == img-height-slice-1.html img-height-slice-1-ref.html
|
||||
== img-height-slice-2.html img-height-slice-2-ref.html
|
||||
|
||||
random-if(winWidget) == img-width-meet-1.html img-width-meet-1-ref.html
|
||||
== img-width-meet-2.html img-width-meet-2-ref.html
|
||||
random-if(winWidget) == img-width-slice-1.html img-width-slice-1-ref.html
|
||||
== img-width-slice-2.html img-width-slice-2-ref.html
|
||||
|
||||
== list-simple-1.html list-simple-1-ref.html
|
Before Width: | Height: | Size: 223 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 235 B |
BIN
layout/reftests/svg/image/blueRect10x10.png
Normal file
After Width: | Height: | Size: 125 B |
6
layout/reftests/svg/image/blueRect10x10.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<!-- Helper SVG file used by some reftests -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="root">
|
||||
<rect x="0" y="0" width="10" height="10" fill="blue"/>
|
||||
<rect x="1" y="1" width="8" height="8" fill="lightblue"/>
|
||||
<rect x="1" y="1" width="8" height="4" fill="teal"/>
|
||||
</svg>
|
After Width: | Height: | Size: 297 B |
Before Width: | Height: | Size: 823 B After Width: | Height: | Size: 823 B |
5
layout/reftests/svg/image/image-opacity-01-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
style="opacity: 0.3"/>
|
||||
</svg>
|
After Width: | Height: | Size: 169 B |
6
layout/reftests/svg/image/image-opacity-01.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<!-- Test to make sure "opacity" value is applied correctly on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"
|
||||
style="opacity: 0.3"/>
|
||||
</svg>
|
After Width: | Height: | Size: 268 B |
6
layout/reftests/svg/image/image-opacity-02-ref.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g style="opacity: 0.3">
|
||||
<use xlink:href="blueRect10x10.svg#root"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 177 B |
7
layout/reftests/svg/image/image-opacity-02.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<!-- Test to make sure "opacity" value is applied correctly on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g style="opacity: 0.3">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 274 B |
@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
class="reftest-wait"
|
||||
onload="go()">
|
||||
<script xlink:href="util.js" type="text/javascript"/>
|
||||
<script>
|
||||
function go() {
|
||||
var grid = generateSymbolGrid("blueRect10x10.svg#root", 20, 40);
|
||||
grid.setAttribute("transform", "translate(10, 10)");
|
||||
document.documentElement.appendChild(grid);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</svg>
|
After Width: | Height: | Size: 483 B |
18
layout/reftests/svg/image/image-preserveAspectRatio-01.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- Test to make sure "preserveAspectRatio" value is applied correctly on
|
||||
<image> tag, when the width:height ratio is less than the image's
|
||||
nativeWidth:nativeHeight -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
class="reftest-wait"
|
||||
onload="go()"
|
||||
style="image-rendering: -moz-crisp-edges">
|
||||
<script xlink:href="util.js" type="text/javascript"/>
|
||||
<script>
|
||||
function go() {
|
||||
var grid = generateImageGrid("blueRect10x10.png", 20, 40);
|
||||
grid.setAttribute("transform", "translate(10, 10)");
|
||||
document.documentElement.appendChild(grid);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</svg>
|
After Width: | Height: | Size: 706 B |
@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
class="reftest-wait"
|
||||
onload="go()">
|
||||
<script xlink:href="util.js" type="text/javascript"/>
|
||||
<script>
|
||||
function go() {
|
||||
var grid = generateSymbolGrid("blueRect10x10.svg#root", 40, 20);
|
||||
grid.setAttribute("transform", "translate(10, 10)");
|
||||
document.documentElement.appendChild(grid);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</svg>
|
After Width: | Height: | Size: 483 B |
18
layout/reftests/svg/image/image-preserveAspectRatio-02.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- Test to make sure "preserveAspectRatio" value is applied correctly on
|
||||
<image> tag, when the width:height ratio is greater than the image's
|
||||
nativeWidth:nativeHeight -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
class="reftest-wait"
|
||||
onload="go()"
|
||||
style="image-rendering: -moz-crisp-edges">
|
||||
<script xlink:href="util.js" type="text/javascript"/>
|
||||
<script>
|
||||
function go() {
|
||||
var grid = generateImageGrid("blueRect10x10.png", 40, 20);
|
||||
grid.setAttribute("transform", "translate(10, 10)");
|
||||
document.documentElement.appendChild(grid);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</svg>
|
After Width: | Height: | Size: 709 B |
5
layout/reftests/svg/image/image-rotate-01-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
transform="rotate(90 50 50)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 177 B |
6
layout/reftests/svg/image/image-rotate-01.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<!-- Test to make sure "rotate" value is applied correctly on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"
|
||||
transform="rotate(90 50 50)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 275 B |
5
layout/reftests/svg/image/image-rotate-02-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
transform="translate(60, 80) rotate(180 40 40)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 196 B |
6
layout/reftests/svg/image/image-rotate-02a.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<!-- Test to make sure "rotate" value is applied correctly on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"
|
||||
transform="translate(60, 80) rotate(180 40 40)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 294 B |
7
layout/reftests/svg/image/image-rotate-02b.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<!-- Test to make sure parent's "rotate" value is applied on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g transform="translate(60, 80) rotate(180 40 40)">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
5
layout/reftests/svg/image/image-translate-01-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
transform="translate(60, 80)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 178 B |
6
layout/reftests/svg/image/image-translate-01.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<!-- Test to make sure transform value is applied correctly on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"
|
||||
transform="translate(60, 80)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 277 B |
5
layout/reftests/svg/image/image-x-01-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
x="123"/>
|
||||
</svg>
|
After Width: | Height: | Size: 156 B |
6
layout/reftests/svg/image/image-x-01.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<!-- Test to make sure "x" value is applied correctly on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"
|
||||
x="123"/>
|
||||
</svg>
|
After Width: | Height: | Size: 249 B |
5
layout/reftests/svg/image/image-xy-01-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
x="123" y="234"/>
|
||||
</svg>
|
After Width: | Height: | Size: 164 B |
7
layout/reftests/svg/image/image-xy-01.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<!-- Test to make sure "x" and "y" value are simultaneously applied correctly
|
||||
on svg:image -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<image xlink:href="blueRect10x10.png" width="10" height="10"
|
||||
x="123" y="234"/>
|
||||
</svg>
|
After Width: | Height: | Size: 286 B |
5
layout/reftests/svg/image/image-y-01-ref.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<use xlink:href="blueRect10x10.svg#root"
|
||||
y="123"/>
|
||||
</svg>
|
After Width: | Height: | Size: 156 B |