Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: webkit/port/bindings/v8/v8_proxy.cpp

Issue 18180: Fix for bug 6100:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "v8_custom.h" 43 #include "v8_custom.h"
44 #include "v8_collection.h" 44 #include "v8_collection.h"
45 #include "v8_nodefilter.h" 45 #include "v8_nodefilter.h"
46 #include "V8DOMWindow.h" 46 #include "V8DOMWindow.h"
47 47
48 #include "ChromiumBridge.h" 48 #include "ChromiumBridge.h"
49 49
50 #include "BarInfo.h" 50 #include "BarInfo.h"
51 #include "CanvasGradient.h" 51 #include "CanvasGradient.h"
52 #include "CanvasPattern.h" 52 #include "CanvasPattern.h"
53 #include "CanvasPixelArray.h"
53 #include "CanvasRenderingContext2D.h" 54 #include "CanvasRenderingContext2D.h"
54 #include "CanvasStyle.h" 55 #include "CanvasStyle.h"
55 #include "CharacterData.h" 56 #include "CharacterData.h"
56 #include "Clipboard.h" 57 #include "Clipboard.h"
57 #include "Console.h" 58 #include "Console.h"
58 #include "Counter.h" 59 #include "Counter.h"
59 #include "CSSCharsetRule.h" 60 #include "CSSCharsetRule.h"
60 #include "CSSFontFaceRule.h" 61 #include "CSSFontFaceRule.h"
61 #include "CSSImportRule.h" 62 #include "CSSImportRule.h"
62 #include "CSSMediaRule.h" 63 #include "CSSMediaRule.h"
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 desc->InstanceTemplate()->SetNamedPropertyHandler( 1652 desc->InstanceTemplate()->SetNamedPropertyHandler(
1652 USE_NAMED_PROPERTY_GETTER(HTMLFormElement)); 1653 USE_NAMED_PROPERTY_GETTER(HTMLFormElement));
1653 desc->InstanceTemplate()->SetIndexedPropertyHandler( 1654 desc->InstanceTemplate()->SetIndexedPropertyHandler(
1654 USE_INDEXED_PROPERTY_GETTER(HTMLFormElement), 1655 USE_INDEXED_PROPERTY_GETTER(HTMLFormElement),
1655 0, 1656 0,
1656 0, 1657 0,
1657 0, 1658 0,
1658 NodeCollectionIndexedPropertyEnumerator<HTMLFormElement>, 1659 NodeCollectionIndexedPropertyEnumerator<HTMLFormElement>,
1659 v8::Integer::New(V8ClassIndex::NODE)); 1660 v8::Integer::New(V8ClassIndex::NODE));
1660 break; 1661 break;
1662 case V8ClassIndex::CANVASPIXELARRAY:
1663 desc->InstanceTemplate()->SetIndexedPropertyHandler(
1664 USE_INDEXED_PROPERTY_GETTER(CanvasPixelArray),
1665 USE_INDEXED_PROPERTY_SETTER(CanvasPixelArray));
1666 break;
1661 case V8ClassIndex::STYLESHEET: // fall through 1667 case V8ClassIndex::STYLESHEET: // fall through
1662 case V8ClassIndex::CSSSTYLESHEET: { 1668 case V8ClassIndex::CSSSTYLESHEET: {
1663 // We add an extra internal field to hold a reference to 1669 // We add an extra internal field to hold a reference to
1664 // the owner node. 1670 // the owner node.
1665 v8::Local<v8::ObjectTemplate> instance_template = 1671 v8::Local<v8::ObjectTemplate> instance_template =
1666 desc->InstanceTemplate(); 1672 desc->InstanceTemplate();
1667 ASSERT(instance_template->InternalFieldCount() == 1673 ASSERT(instance_template->InternalFieldCount() ==
1668 V8Custom::kDefaultWrapperInternalFieldCount); 1674 V8Custom::kDefaultWrapperInternalFieldCount);
1669 instance_template->SetInternalFieldCount( 1675 instance_template->SetInternalFieldCount(
1670 V8Custom::kStyleSheetInternalFieldCount); 1676 V8Custom::kStyleSheetInternalFieldCount);
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
3457 v8::Handle<v8::Function> frame_source_name; 3463 v8::Handle<v8::Function> frame_source_name;
3458 frame_source_name = v8::Local<v8::Function>::Cast( 3464 frame_source_name = v8::Local<v8::Function>::Cast(
3459 utility_context->Global()->Get(v8::String::New("frame_source_name"))); 3465 utility_context->Global()->Get(v8::String::New("frame_source_name")));
3460 if (frame_source_name.IsEmpty()) { 3466 if (frame_source_name.IsEmpty()) {
3461 return String(); 3467 return String();
3462 } 3468 }
3463 return ToWebCoreString(v8::Debug::Call(frame_source_name)); 3469 return ToWebCoreString(v8::Debug::Call(frame_source_name));
3464 } 3470 }
3465 3471
3466 } // namespace WebCore 3472 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698