This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void renderSubtreeToImage(ImageBuffer* image, RenderObject* item) | |
{ | |
ASSERT(item); | |
ASSERT(image); | |
ASSERT(image->context()); | |
RenderObject::PaintInfo info(image->context(), IntRect(), PaintPhaseForeground, 0, 0, 0); | |
// FIXME: isSVGContainer returns true for RenderSVGViewportContainer, so if this is ever | |
// called with one of those, we will read from the wrong offset in an object due to a bad cast. | |
RenderSVGContainer* svgContainer = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dict> | |
<key>begin</key> | |
<string>\b(id)\s*(?=<)</string> | |
<key>beginCaptures</key> | |
<dict> | |
<key>1</key> | |
<dict> | |
<key>name</key> | |
<string>storage.type.js.objj</string> | |
</dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dict> | |
<key>begin</key> | |
<string>(?<=[=(:]|^|return)\s*(/)(?![/*+{}?])</string> | |
<key>beginCaptures</key> | |
<dict> | |
<key>1</key> | |
<dict> | |
<key>name</key> | |
<string>punctuation.definition.string.begin.js</string> | |
</dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mainRunLoop() | |
{ | |
track_1(); | |
[CPApp nextEventMaskMask:blah inMode:CPDefaultRUnLoopMode callback:mainRunLoop]; | |
} | |
function track_1() | |
{ | |
track_2(); | |
[CPApp nextEventMaskMask:blah inMode:CPDefaultRUnLoopMode callback:track_1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)run { | |
NSAutoreleasePool *pool=[NSAutoreleasePool new]; | |
[self finishLaunching]; | |
[pool release]; | |
_isRunning=YES; | |
do { | |
pool = [NSAutoreleasePool new]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (event = [NSApp nextEventMatchingMask:blah inMode:NSDefaultRunLoopMode]) | |
{ | |
while (event = [NSApp nextEventMatchingMask:blah inMode:NSEventTrackingRunLoopMode]) | |
{ | |
while (event = [NSApp nextEventMatchingMask:blah inMode:NSEventTrackingRunLoopMode]) | |
{ | |
performs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)postEvent:(CPEvent)anEvent | |
{ | |
if (_eventListeners.length) | |
{ | |
if (_eventListeners[_eventListeners.length - 1]._mask & (1 << [anEvent type])) | |
{ | |
var eventListener = _eventListeners.pop(); | |
_currentMode = eventListener.mode(); | |
eventListener._callback(anEvent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method("returner", # | |
{ | |
return 5; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method 'returner' # | |
{ | |
return 5; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var i = 0, count = [externalConnections count]; i < count; i++) | |
{ | |
var thisConnection = externalConnections[i], | |
cachedConnection = externalConnectionCache[[thisConnection objectForKey:"index"]]; | |
if ([[self class] documentForObject:[cachedConnection destination]] === self) | |
{ |