Comparing version 2.0.0-pre-HG9PLCRF to 2.0.0-pre-HH0SN197
@@ -5,3 +5,3 @@ { | ||
"author": "apache.org", | ||
"version": "2.0.0-pre-HG9PLCRF", | ||
"version": "2.0.0-pre-HH0SN197", | ||
"tags": [ "debug"], | ||
@@ -8,0 +8,0 @@ "licenses": |
@@ -104,3 +104,3 @@ /* | ||
var insertBefore = insertionIndexForObjectInListSortedByFunction(category, this._sortedCategories, compareCategories); | ||
this._categoriesElement.insertBefore(categoryElement, this._categoriesElement.children[insertBefore]); | ||
this._categoriesElement.insertBefore(categoryElement, this._categoriesElement.children[insertBefore] || null); | ||
this._sortedCategories.splice(insertBefore, 0, category); | ||
@@ -107,0 +107,0 @@ this._updateButton(); |
@@ -660,3 +660,3 @@ /* | ||
const node = WebInspector.domAgent.nodeForId(imageId); | ||
var node = WebInspector.domAgent.nodeForId(imageId); | ||
var src = node.getAttribute("src"); | ||
@@ -674,3 +674,3 @@ if (!src.asParsedURL()) { | ||
const computedStyle = styles.computedStyle; | ||
var computedStyle = styles.computedStyle; | ||
if (computedStyle.getPropertyValue("position") === "absolute") { | ||
@@ -715,3 +715,3 @@ if (!context.imagesLeft) | ||
{ | ||
const nodeIds = []; | ||
var nodeIds = []; | ||
var nodes = document.getElementsByTagName("img"); | ||
@@ -718,0 +718,0 @@ for (var i = 0; i < nodes.length; ++i) { |
@@ -30,3 +30,3 @@ /* | ||
const ExpressionStopCharacters = " =:[({;,!+-*/&|^<>"; | ||
var ExpressionStopCharacters = " =:[({;,!+-*/&|^<>"; | ||
@@ -49,2 +49,3 @@ WebInspector.ConsoleView = function(drawer) | ||
this.promptElement = document.getElementById("console-prompt"); | ||
this.promptElement.setAttribute("contenteditable", "true"); | ||
this.promptElement.className = "source-code"; | ||
@@ -51,0 +52,0 @@ this.promptElement.addEventListener("keydown", this._promptKeyDown.bind(this), true); |
@@ -191,3 +191,3 @@ /* | ||
data[5] = cookie.size; | ||
const checkmark = "\u2713"; | ||
var checkmark = "\u2713"; | ||
data[6] = (cookie.httpOnly ? checkmark : ""); | ||
@@ -194,0 +194,0 @@ data[7] = (cookie.secure ? checkmark : ""); |
@@ -237,3 +237,3 @@ /* | ||
const whitespaceTrimmedQuery = query.trim(); | ||
var whitespaceTrimmedQuery = query.trim(); | ||
if (!whitespaceTrimmedQuery.length) | ||
@@ -240,0 +240,0 @@ return; |
@@ -589,6 +589,6 @@ /* | ||
const node = this.representedObject; | ||
var node = this.representedObject; | ||
if (!node.children) | ||
return; | ||
const childNodeCount = node.children.length; | ||
var childNodeCount = node.children.length; | ||
@@ -599,3 +599,3 @@ // In case some nodes from the expanded range were removed, pull some nodes from the collapsed range into the expanded range at the bottom. | ||
const expandedChildCount = this.expandedChildCount; | ||
var expandedChildCount = this.expandedChildCount; | ||
if (childNodeCount > this.expandedChildCount) { | ||
@@ -1065,3 +1065,7 @@ var targetButtonIndex = expandedChildCount; | ||
element.parentNode.insertBefore(document.createTextNode(" "), element); | ||
element.outerHTML = this._attributeHTML(name, value); | ||
// outerHTML should not be used to replace node content in IE, updated with replaceChild usage | ||
element.innerHTML = this._attributeHTML(name, value); | ||
element.parentNode.replaceChild(element.firstChild, element); | ||
//element.outerHTML = this._attributeHTML(name, value); | ||
} | ||
@@ -1068,0 +1072,0 @@ |
@@ -81,3 +81,3 @@ /* | ||
const measureFontSize = 50; | ||
var measureFontSize = 50; | ||
this.fontPreviewElement.style.setProperty("font-size", measureFontSize + "px", null); | ||
@@ -87,7 +87,7 @@ this.fontPreviewElement.style.setProperty("position", "absolute", null); | ||
const height = this.fontPreviewElement.offsetHeight; | ||
const width = this.fontPreviewElement.offsetWidth; | ||
var height = this.fontPreviewElement.offsetHeight; | ||
var width = this.fontPreviewElement.offsetWidth; | ||
// Subtract some padding. This should match the padding in the CSS plus room for the scrollbar. | ||
const containerWidth = this.element.offsetWidth - 50; | ||
var containerWidth = this.element.offsetWidth - 50; | ||
@@ -94,0 +94,0 @@ if (!height || !width || !containerWidth) { |
@@ -262,3 +262,3 @@ /* | ||
// So default to a recursion cap of 2 levels. | ||
const maxDepth = 2; | ||
var maxDepth = 2; | ||
@@ -265,0 +265,0 @@ while (current) { |
@@ -152,6 +152,6 @@ /* | ||
{ | ||
const cmdKey = "\u2318"; | ||
const optKey = "\u2325"; | ||
const shiftKey = "\u21e7"; | ||
const ctrlKey = "\u2303"; | ||
var cmdKey = "\u2318"; | ||
var optKey = "\u2325"; | ||
var shiftKey = "\u21e7"; | ||
var ctrlKey = "\u2303"; | ||
@@ -158,0 +158,0 @@ var isMac = WebInspector.isMac(); |
@@ -1112,3 +1112,3 @@ /* | ||
{ | ||
const label = this.formatValue(this._value(item)); | ||
var label = this.formatValue(this._value(item)); | ||
return {left: label, right: label, tooltip: label}; | ||
@@ -1624,5 +1624,5 @@ }, | ||
const labelPadding = 10; | ||
const barRightElementOffsetWidth = this._barRightElement.offsetWidth; | ||
const barLeftElementOffsetWidth = this._barLeftElement.offsetWidth; | ||
var labelPadding = 10; | ||
var barRightElementOffsetWidth = this._barRightElement.offsetWidth; | ||
var barLeftElementOffsetWidth = this._barLeftElement.offsetWidth; | ||
@@ -1637,8 +1637,8 @@ if (this._barLeftElement) { | ||
const labelLeftElementOffsetWidth = this._labelLeftElement.offsetWidth; | ||
const labelRightElementOffsetWidth = this._labelRightElement.offsetWidth; | ||
var labelLeftElementOffsetWidth = this._labelLeftElement.offsetWidth; | ||
var labelRightElementOffsetWidth = this._labelRightElement.offsetWidth; | ||
const labelBefore = (labelLeftElementOffsetWidth > leftBarWidth); | ||
const labelAfter = (labelRightElementOffsetWidth > rightBarWidth); | ||
const graphElementOffsetWidth = this._graphElement.offsetWidth; | ||
var labelBefore = (labelLeftElementOffsetWidth > leftBarWidth); | ||
var labelAfter = (labelRightElementOffsetWidth > rightBarWidth); | ||
var graphElementOffsetWidth = this._graphElement.offsetWidth; | ||
@@ -1645,0 +1645,0 @@ if (labelBefore && (graphElementOffsetWidth * (this._percentages.start / 100)) < (labelLeftElementOffsetWidth + 10)) |
@@ -75,12 +75,12 @@ /* | ||
{ | ||
const borderWidth = 25; | ||
const scrollerWidth = 11; | ||
const arrowHeight = 15; | ||
const arrowOffset = 10; | ||
const borderRadius = 10; | ||
var borderWidth = 25; | ||
var scrollerWidth = 11; | ||
var arrowHeight = 15; | ||
var arrowOffset = 10; | ||
var borderRadius = 10; | ||
// Skinny tooltips are not pretty, their arrow location is not nice. | ||
preferredWidth = Math.max(preferredWidth, 50); | ||
const totalWidth = window.innerWidth; | ||
const totalHeight = window.innerHeight; | ||
var totalWidth = window.innerWidth; | ||
var totalHeight = window.innerHeight; | ||
@@ -202,3 +202,3 @@ var anchorBox = {x: anchorElement.totalOffsetLeft, y: anchorElement.totalOffsetTop, width: anchorElement.offsetWidth, height: anchorElement.offsetHeight}; | ||
const toolTipDelay = isMouseDown ? 0 : (this._popup ? this._timeout * 0.6 : this._timeout); | ||
var toolTipDelay = isMouseDown ? 0 : (this._popup ? this._timeout * 0.6 : this._timeout); | ||
this._hoverTimer = setTimeout(this._mouseHover.bind(this, this._hoverElement), toolTipDelay); | ||
@@ -205,0 +205,0 @@ }, |
@@ -26,3 +26,3 @@ /* | ||
const UserInitiatedProfileName = "org.webkit.profiles.user-initiated"; | ||
var UserInitiatedProfileName = "org.webkit.profiles.user-initiated"; | ||
@@ -529,3 +529,3 @@ WebInspector.ProfileType = function(id, name) | ||
const visibleView = this.visibleView; | ||
var visibleView = this.visibleView; | ||
if (visibleView && visibleView.performSearch) | ||
@@ -532,0 +532,0 @@ views.push(visibleView); |
@@ -720,3 +720,3 @@ /* | ||
{ | ||
const maxDataUrlSize = 1024 * 1024; | ||
var maxDataUrlSize = 1024 * 1024; | ||
// If resource content is not available or won't fit a data URL, fall back to using original URL. | ||
@@ -723,0 +723,0 @@ if (this._content == null || this._content.length > maxDataUrlSize) |
@@ -657,3 +657,3 @@ /* | ||
const visibleView = this.visibleView; | ||
var visibleView = this.visibleView; | ||
if (visibleView.performSearch) | ||
@@ -832,3 +832,3 @@ views.push(visibleView); | ||
// icons in the tree. | ||
const paddingLeft = 14; | ||
var paddingLeft = 14; | ||
var left = this.listItemElement.totalOffsetLeft + paddingLeft; | ||
@@ -835,0 +835,0 @@ return event.pageX >= left && event.pageX <= left + this.arrowToggleWidth && this.hasChildren; |
@@ -116,3 +116,3 @@ /* | ||
const chartWidth = 200; | ||
var chartWidth = 200; | ||
var total = (resource.endTime - resource.timing.requestTime) * 1000; | ||
@@ -119,0 +119,0 @@ var scale = chartWidth / total; |
@@ -88,4 +88,5 @@ /* | ||
this.__defineGetter__(key, this._get.bind(this, key, defaultValue)); | ||
this.__defineSetter__(key, this._set.bind(this, key)); | ||
Object.defineProperty(this, key,{ | ||
get : this._get.bind(this, key, defaultValue), | ||
set : this._set.bind(this, key)}); | ||
}, | ||
@@ -95,4 +96,6 @@ | ||
{ | ||
this.__defineGetter__(key, this._getProjectSetting.bind(this, key, defaultValue)); | ||
this.__defineSetter__(key, this._setProjectSetting.bind(this, key)); | ||
Object.defineProperty(this, key,{ | ||
get : this._getProjectSetting.bind(this, key, defaultValue), | ||
set : this._setProjectSetting.bind(this, key)}); | ||
}, | ||
@@ -99,0 +102,0 @@ |
@@ -68,3 +68,3 @@ /* | ||
const wrapAfter = height / nColumns; | ||
var wrapAfter = height / nColumns; | ||
var table = document.createElement("table"); | ||
@@ -71,0 +71,0 @@ table.className = "help-table"; |
@@ -658,3 +658,3 @@ /* | ||
const toolTipDelay = this._popup ? 600 : 1000; | ||
var toolTipDelay = this._popup ? 600 : 1000; | ||
this._hoverTimer = setTimeout(this._mouseHover.bind(this, this._hoverElement), toolTipDelay); | ||
@@ -765,4 +765,4 @@ }, | ||
this._popup = new WebInspector.Popover(popupContentElement); | ||
const popupWidth = 300; | ||
const popupHeight = 250; | ||
var popupWidth = 300; | ||
var popupHeight = 250; | ||
this._popup.show(element, popupWidth, popupHeight); | ||
@@ -769,0 +769,0 @@ } |
@@ -54,3 +54,8 @@ /* | ||
this.element.removeChildren(); | ||
this.element.appendChild(document.createElement("br")); | ||
// For IE we don't need a <br> to correctly set console caret; otherwise there will be two lines (incorrect) instead of one | ||
if (!navigator.userAgent.match(/MSIE/i)) { | ||
this.element.appendChild(document.createElement("br")); | ||
} | ||
} else | ||
@@ -79,5 +84,6 @@ this.element.textContent = x; | ||
var handled = false; | ||
var handled = false, | ||
key = event.keyIdentifier || event.key; | ||
switch (event.keyIdentifier) { | ||
switch (key) { | ||
case "Up": | ||
@@ -123,2 +129,7 @@ this.upKeyPressed(event); | ||
if (event.keyCode == 13 || event.charCode == 13) { | ||
handled = true; | ||
event.target.blur(); | ||
} | ||
handled |= event.handled; | ||
@@ -125,0 +136,0 @@ if (handled) { |
@@ -313,3 +313,3 @@ /* | ||
{ | ||
const rulerAdjustment = 1 / this._overviewGrid.element.clientWidth; | ||
var rulerAdjustment = 1 / this._overviewGrid.element.clientWidth; | ||
if (typeof start === "number") { | ||
@@ -316,0 +316,0 @@ this.windowLeft = start / this._overviewGrid.element.clientWidth; |
@@ -546,3 +546,3 @@ /* | ||
const rowHeight = WebInspector.TimelinePanel.rowHeight; | ||
var rowHeight = WebInspector.TimelinePanel.rowHeight; | ||
@@ -554,3 +554,3 @@ // Convert visible area to visible indexes. Always include top-level record for a visible nested record. | ||
// Resize gaps first. | ||
const top = (startIndex * rowHeight) + "px"; | ||
var top = (startIndex * rowHeight) + "px"; | ||
this._topGapElement.style.height = top; | ||
@@ -696,4 +696,4 @@ this.sidebarElement.style.top = top; | ||
{ | ||
const minWidth = 5; | ||
const borderWidth = 4; | ||
var minWidth = 5; | ||
var borderWidth = 4; | ||
var workingArea = clientWidth - minWidth - borderWidth; | ||
@@ -729,4 +729,4 @@ var percentages = this.computeBarGraphPercentages(record); | ||
const minimumTimeFrame = 0.1; | ||
const minimumDeltaForZeroSizeEvents = 0.01; | ||
var minimumTimeFrame = 0.1; | ||
var minimumDeltaForZeroSizeEvents = 0.01; | ||
var upperBound = Math.max(record._lastChildEndTime + minimumDeltaForZeroSizeEvents, lowerBound + minimumTimeFrame); | ||
@@ -955,3 +955,3 @@ if (this._absoluteMaximumBoundary === -1 || upperBound > this._absoluteMaximumBoundary) | ||
const recordTypes = WebInspector.TimelineAgent.RecordType; | ||
var recordTypes = WebInspector.TimelineAgent.RecordType; | ||
@@ -1160,3 +1160,3 @@ switch (this.type) { | ||
{ | ||
const rowHeight = WebInspector.TimelinePanel.rowHeight; | ||
var rowHeight = WebInspector.TimelinePanel.rowHeight; | ||
if (record._visibleChildrenCount || record._invisibleChildrenCount) { | ||
@@ -1163,0 +1163,0 @@ this._element.style.top = index * rowHeight + "px"; |
@@ -283,3 +283,3 @@ /* | ||
Element.prototype.__defineGetter__("totalOffsetLeft", function() | ||
Object.defineProperty(Element.prototype, "totalOffsetLeft", {get: function() | ||
{ | ||
@@ -290,5 +290,5 @@ var total = 0; | ||
return total; | ||
}); | ||
}}); | ||
Element.prototype.__defineGetter__("totalOffsetTop", function() | ||
Object.defineProperty(Element.prototype, "totalOffsetTop", {get: function() | ||
{ | ||
@@ -299,3 +299,3 @@ var total = 0; | ||
return total; | ||
}); | ||
}}); | ||
@@ -320,3 +320,3 @@ Element.prototype.offsetRelativeToWindow = function(targetWindow) | ||
KeyboardEvent.prototype.__defineGetter__("data", function() | ||
Object.defineProperty(KeyboardEvent.prototype, "data", {get: function() | ||
{ | ||
@@ -338,3 +338,3 @@ // Emulate "data" attribute from DOM 3 TextInput event. | ||
} | ||
}); | ||
}}); | ||
@@ -358,3 +358,3 @@ Text.prototype.select = function(start, end) | ||
Element.prototype.__defineGetter__("selectionLeftOffset", function() { | ||
Object.defineProperty(Element.prototype, "selectionLeftOffset", {get: function() { | ||
// Calculate selection offset relative to the current element. | ||
@@ -378,3 +378,3 @@ | ||
return leftOffset; | ||
}); | ||
}}); | ||
@@ -1027,3 +1027,3 @@ Node.prototype.isWhitespace = isNodeWhitespace; | ||
// Check if in IME. | ||
return event.keyCode !== 229 && event.keyIdentifier === "Enter"; | ||
return (event.keyCode !== 229 && event.keyIdentifier === "Enter") || event.keyCode == 13 || event.charCode == 13; | ||
} | ||
@@ -1030,0 +1030,0 @@ |
@@ -44,1 +44,93 @@ /* | ||
})(); | ||
// __proto__ inheritance support; Weinre client classes only | ||
(function () { | ||
var hasProto = "__proto__" in Object.prototype; | ||
if (!hasProto) { | ||
Object.defineProperty(Object.prototype, '__proto__', {set : function(value){ | ||
var tmpFunc = new Function(); | ||
tmpFunc.prototype = Object.create(value); | ||
function copyProperties(a, b) { | ||
var d; | ||
for (var i in b) { | ||
d = Object.getOwnPropertyDescriptor(b, i); | ||
if (d &&(d.get || d.set)) { | ||
Object.defineProperty(a, i, d); | ||
} else { | ||
a[i] = b[i]; | ||
} | ||
} | ||
return a; | ||
} | ||
function findProtoOwner(root, proto, depth){ | ||
if (depth > 1) return; | ||
var props = Object.getOwnPropertyNames(root), | ||
prop, | ||
d; | ||
for (var i = props.length; i--;) { | ||
prop = props[i]; | ||
d = Object.getOwnPropertyDescriptor(root, prop); | ||
if (d && (d.get || d.set)) continue; | ||
if (typeof(root[prop]) === 'function' && root[prop].prototype === proto) { | ||
return root[prop]; | ||
} | ||
if (root[prop] && root[prop].prototype instanceof WebInspector.Object) { | ||
var owner = findProtoOwner(root[prop], proto, depth+1); | ||
if (owner) return owner; | ||
} | ||
} | ||
} | ||
copyProperties(tmpFunc.prototype, this); | ||
// hack to be able to redefine object prototype; we can't do it another way | ||
// because we have prototype as 'this' here only | ||
var owner = findProtoOwner (window.WebInspector, this, 0); | ||
if (owner) { | ||
owner.prototype = new tmpFunc(); | ||
owner.prototype.proto = value; | ||
} | ||
}, get : function(){ | ||
return this.proto; | ||
}}); | ||
} | ||
})(); | ||
//if (!Object.prototype.__defineGetter__) { | ||
// Object.prototype.__defineGetter__ = function (key, fn) { | ||
// Object.defineProperty(this, key, {get: fn}); | ||
// } | ||
//} | ||
// | ||
//if (!Object.prototype.__defineSetter__) { | ||
// Object.prototype.__defineSetter__ = function (key, fn) { | ||
// Object.defineProperty(this, key, {set: fn, configurable: true, writable : true}); | ||
// } | ||
//} | ||
// hack for not existing scrollIntoViewIfNeeded | ||
if (!HTMLElement.prototype.scrollIntoViewIfNeeded){ | ||
HTMLElement.prototype.scrollIntoViewIfNeeded = function(alignWithTop) { | ||
return this.scrollIntoView(alignWithTop); | ||
}; | ||
} | ||
// hack for not existing setBaseAndExtent | ||
if (!Selection.prototype.setBaseAndExtent){ | ||
Selection.prototype.setBaseAndExtent = Selection.prototype.selectAllChildren; | ||
} |
@@ -1,2 +0,2 @@ | ||
weinre build 2.0.0-pre-HG9PLCRF by Patrick Mueller | ||
git: 80ca5c76f150e680102c0deea3547b0fc1040741 [CB-604] - weinre doesn't work in strict mode | ||
weinre build 2.0.0-pre-HH0SN197 by Patrick Mueller | ||
git: da06b4940c8937ff278f5aa005b079610456c779 add some missed overridden files to front-end |
@@ -23,4 +23,4 @@ /* | ||
Weinre.Versions = { | ||
weinre: "2.0.0-pre-HG9PLCRF", | ||
build: "HG9PLCRF", | ||
weinre: "2.0.0-pre-HH0SN197", | ||
build: "HH0SN197", | ||
}; |
@@ -80,2 +80,5 @@ ;modjewel.define("weinre/client/Client", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
toolButtonsToHide = ['scripts']; | ||
if (navigator.userAgent.match(/MSIE/i)) { | ||
toolButtonsToHide.push('resources', 'network', 'timeline', 'profiles', 'audits'); | ||
} | ||
for (_i = 0, _len = toolButtonsToHide.length; _i < _len; _i++) { | ||
@@ -82,0 +85,0 @@ toolButtonToHide = toolButtonsToHide[_i]; |
@@ -20,16 +20,24 @@ ;modjewel.define("weinre/client/RemotePanel", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
RemotePanel.prototype.__defineGetter__("toolbarItemClass", function() { | ||
return "remote"; | ||
Object.defineProperty(RemotePanel.prototype, "toolbarItemClass", { | ||
get: function() { | ||
return "remote"; | ||
} | ||
}); | ||
RemotePanel.prototype.__defineGetter__("toolbarItemLabel", function() { | ||
return "Remote"; | ||
Object.defineProperty(RemotePanel.prototype, "toolbarItemLabel", { | ||
get: function() { | ||
return "Remote"; | ||
} | ||
}); | ||
RemotePanel.prototype.__defineGetter__("statusBarItems", function() { | ||
return []; | ||
Object.defineProperty(RemotePanel.prototype, "statusBarItems", { | ||
get: function() { | ||
return []; | ||
} | ||
}); | ||
RemotePanel.prototype.__defineGetter__("defaultFocusedElement", function() { | ||
return this.contentElement; | ||
Object.defineProperty(RemotePanel.prototype, "defaultFocusedElement", { | ||
get: function() { | ||
return this.contentElement; | ||
} | ||
}); | ||
@@ -36,0 +44,0 @@ |
@@ -70,3 +70,5 @@ ;modjewel.define("weinre/common/HookLib", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
hookedFunction = getHookedFunction(this.target, this); | ||
object[property] = hookedFunction; | ||
if (!(navigator.userAgent.match(/MSIE/i) && (object === localStorage || object === sessionStorage))) { | ||
object[property] = hookedFunction; | ||
} | ||
} | ||
@@ -73,0 +75,0 @@ } |
@@ -220,3 +220,3 @@ ;modjewel.define("weinre/common/WebSocketXhr", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
} | ||
xhr = new XMLHttpRequest(); | ||
xhr = (XMLHttpRequest.noConflict ? new XMLHttpRequest.noConflict() : new XMLHttpRequest()); | ||
xhr.httpSocket = this; | ||
@@ -223,0 +223,0 @@ xhr.httpSocketHandler = handler; |
@@ -68,14 +68,14 @@ ;modjewel.define("weinre/target/ElementHighlighter", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
metrics.height = element.offsetHeight; | ||
metrics.marginLeft = fromPx(cStyle["margin-left"]); | ||
metrics.marginRight = fromPx(cStyle["margin-right"]); | ||
metrics.marginTop = fromPx(cStyle["margin-top"]); | ||
metrics.marginBottom = fromPx(cStyle["margin-bottom"]); | ||
metrics.borderLeft = fromPx(cStyle["border-left-width"]); | ||
metrics.borderRight = fromPx(cStyle["border-right-width"]); | ||
metrics.borderTop = fromPx(cStyle["border-top-width"]); | ||
metrics.borderBottom = fromPx(cStyle["border-bottom-width"]); | ||
metrics.paddingLeft = fromPx(cStyle["padding-left"]); | ||
metrics.paddingRight = fromPx(cStyle["padding-right"]); | ||
metrics.paddingTop = fromPx(cStyle["padding-top"]); | ||
metrics.paddingBottom = fromPx(cStyle["padding-bottom"]); | ||
metrics.marginLeft = fromPx(cStyle["margin-left"] || cStyle["marginLeft"]); | ||
metrics.marginRight = fromPx(cStyle["margin-right"] || cStyle["marginRight"]); | ||
metrics.marginTop = fromPx(cStyle["margin-top"] || cStyle["marginTop"]); | ||
metrics.marginBottom = fromPx(cStyle["margin-bottom"] || cStyle["marginBottom"]); | ||
metrics.borderLeft = fromPx(cStyle["border-left-width"] || cStyle["borderLeftWidth"]); | ||
metrics.borderRight = fromPx(cStyle["border-right-width"] || cStyle["borderRightWidth"]); | ||
metrics.borderTop = fromPx(cStyle["border-top-width"] || cStyle["borderTopWidth"]); | ||
metrics.borderBottom = fromPx(cStyle["border-bottom-width"] || cStyle["borderBottomWidth"]); | ||
metrics.paddingLeft = fromPx(cStyle["padding-left"] || cStyle["paddingLeft"]); | ||
metrics.paddingRight = fromPx(cStyle["padding-right"] || cStyle["paddingRight"]); | ||
metrics.paddingTop = fromPx(cStyle["padding-top"] || cStyle["paddingTop"]); | ||
metrics.paddingBottom = fromPx(cStyle["padding-bottom"] || cStyle["paddingBottom"]); | ||
metrics.x -= metrics.marginLeft; | ||
@@ -82,0 +82,0 @@ metrics.y -= metrics.marginTop; |
@@ -217,3 +217,5 @@ ;modjewel.define("weinre/target/Target", function(require, exports, module) { // Generated by CoffeeScript 1.3.3 | ||
var nodeData, nodeId; | ||
Weinre.elementHighlighter = ElementHighlighter.create(); | ||
if (!Weinre.elementHighlighter) { | ||
Weinre.elementHighlighter = ElementHighlighter.create(); | ||
} | ||
nodeId = Weinre.nodeStore.getNodeId(document); | ||
@@ -220,0 +222,0 @@ nodeData = Weinre.nodeStore.getNodeData(nodeId, 2); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1
72099
5268885
432