Skip to content

Instantly share code, notes, and snippets.

View omo's full-sized avatar

Hajime Morrita omo

  • Mountain View, CA
View GitHub Profile
@omo
omo / process.hpp
Created April 8, 2012 11:35
process.hpp
class ProcessBase : public EventVisitor
{
public:
ProcessBase(const std::string& id = "");
virtual ~ProcessBase();
UPID self() const { return pid; }
protected:
ASSERTION FAILED: m_isAnimating
../../Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h(78) : virtual void WebCore::SVGAnimatedPropertyTearOff<WebCore::SVGLength>::animationEnded()
1 0x3bdb5a7f WebCore::SVGAnimatedPropertyTearOff<WebCore::SVGLength>::animationEnded()
2 0x3983f561 WebCore::notifyAnimatedPropertyAboutAnimationBeginEnd(WebCore::SVGAnimatedProperty*, WebCore::SVGAnimatedType*, WebCore::SVGElement*, WebCore::QualifiedName const&)
3 0x3983f731 WebCore::SVGAnimationElement::animationEnded(WebCore::SVGAnimatedProperty*)
4 0x3983410a WebCore::SVGAnimateElement::targetElementWillChange(WebCore::SVGElement*, WebCore::SVGElement*)
5 0x399a0422 WebCore::SVGSMILElement::resetTargetElement()
6 0x39854b72 WebCore::SVGDocumentExtensions::removeAllAnimationElementsFromTarget(WebCore::SVGElement*)
7 0x39873897 WebCore::SVGElement::removedFromDocument()
8 0x39953ecd WebCore::SVGStyledElement::removedFromDocument()
[12/5800] ACTION webkit_system_interface: Adjust_Visibility
FAILED: cd ../../Source/WebCore/WebCore.gyp; export SRCROOT=/Users/morrita/work/webkit/bob/out/Debug/../../Source/WebCore/WebCore.gyp; export SOURCE_ROOT="${SRCROOT}"; export BUILT_PRODUCTS_DIR=/Users/morrita/work/webkit/bob/out/Debug; export CONFIGURATION=Debug; export PRODUCT_NAME=webkit_system_interface; export TARGET_BUILD_DIR=/Users/morrita/work/webkit/bob/out/Debug; export TEMP_DIR="${TMPDIR}";mac/adjust_visibility.sh ../../WebKit/chromium/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a ../../../out/Debug/libWebKitSystemInterfaceLeopardPrivateExtern.a ../../../out/Debug/obj/Source/WebCore/WebCore.gyp/webkit_system_interface.gen/adjust_visibility
Please |lipo -remove ppc -remove ppc64| from ../../WebKit/chromium/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a.
Xcode 4.3's ld can no longer relink ppc files.
@omo
omo / handlebars.js
Created February 21, 2012 13:16
Handlebars.js AMD support
// src/amd/prologue.js
define(function() {
// lib/handlebars/base.js
/*jshint eqnull:true*/
var Handlebars = {};
Handlebars.VERSION = "1.0.beta.5";
@omo
omo / gist:1822443
Created February 14, 2012 01:56
FrameTree.h inclusion list
narogoloth:alice morrita$ find Source/ -name "*.cpp" | xargs grep FrameTree
Source//WebCore/bindings/js/JSDOMWindowCustom.cpp:#include "FrameTree.h"
Source//WebCore/bindings/js/PageScriptDebugServer.cpp:#include "FrameTree.h"
Source//WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp:#include "FrameTree.h"
Source//WebCore/dom/Document.cpp:#include "FrameTree.h"
Source//WebCore/editing/Editor.cpp:#include "FrameTree.h"
Source//WebCore/editing/FrameSelection.cpp:#include "FrameTree.h"
Source//WebCore/history/CachedFrame.cpp:#include "FrameTree.h"
Source//WebCore/history/CachedPage.cpp:#include "FrameTree.h"
Source//WebCore/history/PageCache.cpp:#include "FrameTree.h"
@omo
omo / AtomicString.cpp
Created February 8, 2012 07:32
AtomicString AtomicString::lower()
AtomicString AtomicString::lower() const
{
// Note: This is a hot function in the Dromaeo benchmark.
StringImpl* impl = this->impl();
if (UNLIKELY(!impl))
return *this;
RefPtr<StringImpl> newImpl = impl->lower();
if (LIKELY(newImpl == impl))
return *this;
return AtomicString(newImpl);
@omo
omo / gist:1715443
Created February 1, 2012 06:12
JSC exp list diff updated.
--- beforeg.sym 2012-02-01 14:28:12.000000000 +0900
+++ afterg.sym 2012-02-01 14:29:05.000000000 +0900
@@ -117,9 +117,11 @@
T __ZN3JSC10JSFunction6createEPNS_9ExecStateEPNS_14JSGlobalObjectEiRKNS_10IdentifierEPFPvS2_ESA_
S __ZN3JSC10JSFunction6s_infoE
T __ZN3JSC10JSFunctionC1EPNS_9ExecStateEPNS_14JSGlobalObjectEPNS_9StructureE
+T __ZN3JSC10JSFunctionC2EPNS_9ExecStateEPNS_14JSGlobalObjectEPNS_9StructureE
T __ZN3JSC10throwErrorEPNS_9ExecStateENS_7JSValueE
T __ZN3JSC10throwErrorEPNS_9ExecStateEPNS_8JSObjectE
T __ZN3JSC11Interpreter13getStackTraceEPNS_12JSGlobalDataEiRN3WTF6VectorINS_10StackFrameELm0EEE
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
index abb528d..9c174f9 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
@@ -218,7 +218,7 @@ NSAttributedString* OmniboxPopupViewMac::MatchText(
font.GetNativeFont(), NSFontAttributeName,
ContentTextColor(), NSForegroundColorAttributeName,
nil];
- NSString* rawEnDash = [NSString stringWithFormat:@" %C ", 0x2013];
+ NSString* rawEnDash = [NSString stringWithFormat:@" %C ", static_cast<wchar_t>(0x2013)];
/*
* Generated by dtrace(1M).
*/
#ifndef _TRACING_H
#define _TRACING_H
#include <unistd.h>
#ifdef __cplusplus
@omo
omo / gist:1655408
Created January 22, 2012 04:04
/etc/hosts 追記分
127.0.0.1 plus.google.com
127.0.0.1 twitter.com
127.0.0.1 www.facebook.com
127.0.0.1 b.hatena.ne.jp
127.0.0.1 mixi.jp