Skip to content

Instantly share code, notes, and snippets.

@rniwa
rniwa / RenderBlock.cpp.diff
Created April 18, 2013 21:50
Logging of the number of objects that has floats or regions in the ancestor chain in logicalLeftSelectionOffset and logicalRightSelectionOffset
Index: Source/WebCore/rendering/RenderBlock.cpp
===================================================================
--- Source/WebCore/rendering/RenderBlock.cpp (revision 148625)
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy)
@@ -3703,13 +3703,49 @@
(state == RenderObject::SelectionEnd && !ltr);
}
+#define LSO_LOG 1
+
Process: Safari [30260]
Path: /Applications/Safari.app/Contents/MacOS/Safari
Identifier: org.webkit.nightly.WebKit
Version: r117439 (117439)
Code Type: X86-64 (Native)
Parent Process: launchd [1832]
Date/Time: 2012-05-17 13:52:51.722 -0700
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@rniwa
rniwa / gist:2491709
Created April 25, 2012 18:01
safari ajax failure reduction attempt
<!DOCTYPE html>
<html>
<head>
<script src="jquery-min.js"></script>
</head>
<body>
<script>
$.ajax({url: 'jquery.js'}).done(function () {
alert('PASS');
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
module ActiveRecord
class Schema
def self.define(info={}, &block)
yield block
end
end
end
class PIQLTable
ENTITY Site
{
string url,
int created_at,
int updated_at
PRIMARY(url)
}
ENTITY User
{
ENTITY sites
{
int site_id,
string url,
int created_at,
int updated_at
PRIMARY(url)
}
ENTITY users
ENTITY sites
{
int site_id,
string url,
int created_at,
int updated_at
PRIMARY(url)
}
ENTITY users