unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
9,011
0
static bool vmxnet3_interrupt_asserted(VMXNET3State *s, int lidx) { return s->interrupt_states[lidx].is_asserted; }
4,200
188,370
1
long long BlockGroup::GetNextTimeCode() const { return m_next; }
4,201
172,980
0
static int rpng2_x_load_bg_image(void) { uch *src; char *dest; uch r1, r2, g1, g2, b1, b2; uch r1_inv, r2_inv, g1_inv, g2_inv, b1_inv, b2_inv; int k, hmax, max; int xidx, yidx, yidx_max; int even_odd_vert, even_odd_horiz, even_odd; int invert_gradient2 = (bg[pat].type & 0x08); int invert_column; int ...
4,202
103,678
0
void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> MHTMLGenerated(job_id, success); }
4,203
138,180
0
bool AXObject::lastKnownIsIgnoredValue() { if (m_lastKnownIsIgnoredValue == DefaultBehavior) m_lastKnownIsIgnoredValue = accessibilityIsIgnored() ? IgnoreObject : IncludeObject; return m_lastKnownIsIgnoredValue == IgnoreObject; }
4,204
53,468
0
archive_read_support_format_rar_capabilities(struct archive_read * a) { (void)a; /* UNUSED */ return (ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_DATA | ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_METADATA); }
4,205
178,060
1
sfnt_init_face( FT_Stream stream, TT_Face face, FT_Int face_instance_index, FT_Int num_params, FT_Parameter* params ) { FT_Error error; FT_Memory memory = face->root.memory; FT_Library library = face->root.driver->root.library; SFNT_Service sfnt; FT_Int face_index; /* ...
4,206
175,710
0
FLACParser::~FLACParser() { ALOGV("FLACParser::~FLACParser"); if (mDecoder != NULL) { FLAC__stream_decoder_delete(mDecoder); mDecoder = NULL; } }
4,207
34,556
0
static inline struct sk_buff *macvtap_alloc_skb(struct sock *sk, size_t prepad, size_t len, size_t linear, int noblock, int *err) { struct sk_buff *skb; /* Under a page? Don't bother with paged skb. */ if (prepad + len < PAGE_SIZE || !linear) linear = len; skb = sock_alloc_send_pskb(sk, prepad + li...
4,208
174,249
0
status_t Camera3Device::RequestThread::prepareHalRequests() { ATRACE_CALL(); for (auto& nextRequest : mNextRequests) { sp<CaptureRequest> captureRequest = nextRequest.captureRequest; camera3_capture_request_t* halRequest = &nextRequest.halRequest; Vector<camera3_stream_buffer_t>* outputBuffers = &nextRe...
4,209
15,631
0
static void scoop_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { ScoopInfo *s = (ScoopInfo *) opaque; value &= 0xffff; switch (addr & 0x3f) { case SCOOP_MCR: s->mcr = value; break; case SCOOP_CDR: s->cdr = value; break; ...
4,210
67,839
0
DefragContextNew(void) { DefragContext *dc; dc = SCCalloc(1, sizeof(*dc)); if (unlikely(dc == NULL)) return NULL; /* Initialize the pool of trackers. */ intmax_t tracker_pool_size; if (!ConfGetInt("defrag.trackers", &tracker_pool_size) || tracker_pool_size == 0) { tracker_pool_...
4,211
111,175
0
bool WebPagePrivate::hasVirtualViewport() const { return !m_virtualViewportSize.isEmpty(); }
4,212
25,485
0
static long ppc_del_hwdebug(struct task_struct *child, long addr, long data) { #ifdef CONFIG_PPC_ADV_DEBUG_REGS int rc; if (data <= 4) rc = del_instruction_bp(child, (int)data); else rc = del_dac(child, (int)data - 4); if (!rc) { if (!DBCR_ACTIVE_EVENTS(child->thread.dbcr0, child->thread.dbcr1)) { c...
4,213
85,809
0
static int ocfs2_init_file_private(struct inode *inode, struct file *file) { struct ocfs2_file_private *fp; fp = kzalloc(sizeof(struct ocfs2_file_private), GFP_KERNEL); if (!fp) return -ENOMEM; fp->fp_file = file; mutex_init(&fp->fp_mutex); ocfs2_file_lock_res_init(&fp->fp_flock, fp); file->private_data = fp...
4,214
166,453
0
void RecordParallelizableDownloadStats( size_t bytes_downloaded_with_parallel_streams, base::TimeDelta time_with_parallel_streams, size_t bytes_downloaded_without_parallel_streams, base::TimeDelta time_without_parallel_streams, bool uses_parallel_requests) { RecordParallelizableDownloadAverageStat...
4,215
62,455
0
parsefh(netdissect_options *ndo, register const uint32_t *dp, int v3) { u_int len; if (v3) { ND_TCHECK(dp[0]); len = EXTRACT_32BITS(dp) / 4; dp++; } else len = NFSX_V2FH / 4; if (ND_TTEST2(*dp, len * sizeof(*dp))) { nfs_printfh(ndo, dp, len); return (dp + len); } trunc: return (NULL); }
4,216
185,160
1
void RenderBlockFlow::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderBlock::styleDidChange(diff, oldStyle); // After our style changed, if we lose our ability to propagate floats into next sibling // blocks, then we need to find the top most parent containing that overhanging float and // th...
4,217
24,276
0
static int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) { struct vlan_hdr *vhdr; unsigned int vhdrlen = 0; u16 vlan_tci = 0; int rc; if (!(vlan_dev_info(dev)->flags & VLAN_FLAG_REORDER_HDR)) { vhdr = (s...
4,218
22,105
0
do_group_exit(int exit_code) { struct signal_struct *sig = current->signal; BUG_ON(exit_code & 0x80); /* core dumps don't get here */ if (signal_group_exit(sig)) exit_code = sig->group_exit_code; else if (!thread_group_empty(current)) { struct sighand_struct *const sighand = current->sighand; spin_lock_irq(...
4,219
128,094
0
void SynchronousCompositorImpl::UpdateNeedsBeginFrames() { rwhva_->OnSetNeedsBeginFrames(is_active_ && renderer_needs_begin_frames_); }
4,220
71,040
0
void* Type_ProfileSequenceId_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n) { return (void*) cmsDupProfileSequenceDescription((cmsSEQ*) Ptr); cmsUNUSED_PARAMETER(n); cmsUNUSED_PARAMETER(self); }
4,221
122,181
0
void RenderLayerCompositor::repaintOnCompositingChange(RenderLayer* layer) { if (layer->renderer() != m_renderView && !layer->renderer()->parent()) return; RenderLayerModelObject* repaintContainer = layer->renderer()->containerForRepaint(); if (!repaintContainer) repaintContainer = m_render...
4,222
154,335
0
void GLES2DecoderImpl::RenderbufferStorageMultisampleHelper( GLenum target, GLsizei samples, GLenum internal_format, GLsizei width, GLsizei height, ForcedMultisampleMode mode) { if (samples == 0) { api()->glRenderbufferStorageEXTFn(target, internal_format, width, height); return; } ...
4,223
119,803
0
void NavigationControllerImpl::PruneAllButVisible() { PruneAllButVisibleInternal(); DCHECK_NE(-1, last_committed_entry_index_); NavigationEntryImpl* entry = NavigationEntryImpl::FromNavigationEntry(GetActiveEntry()); web_contents_->SetHistoryLengthAndPrune( entry->site_instance(), 0, entry->GetPag...
4,224
153,927
0
void GLES2DecoderImpl::DeleteBuffersHelper(GLsizei n, const volatile GLuint* client_ids) { for (GLsizei ii = 0; ii < n; ++ii) { GLuint client_id = client_ids[ii]; Buffer* buffer = GetBuffer(client_id); if (buffer && !buffer->IsDeleted()) { if (buffer->GetMa...
4,225
112,028
0
void ConflictResolver::IgnoreLocalChanges(MutableEntry* entry) { entry->Put(syncable::IS_UNSYNCED, false); }
4,226
136,082
0
WebsiteSettingsPopupAndroid::~WebsiteSettingsPopupAndroid() {}
4,227
52,159
0
PHPAPI PHP_FUNCTION(fwrite) { zval *arg1; char *arg2; int arg2len; int ret; int num_bytes; long arg3 = 0; char *buffer = NULL; php_stream *stream; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &arg1, &arg2, &arg2len, &arg3) == FAILURE) { RETURN_FALSE; } if (ZEND_NUM_ARGS() == 2) { num_by...
4,228
104,136
0
error::Error GLES2DecoderImpl::HandleGetShaderPrecisionFormat( uint32 immediate_data_size, const gles2::GetShaderPrecisionFormat& c) { GLenum shader_type = static_cast<GLenum>(c.shadertype); GLenum precision_type = static_cast<GLenum>(c.precisiontype); typedef gles2::GetShaderPrecisionFormat::Result Result; ...
4,229
179,817
1
iakerb_gss_delete_sec_context(OM_uint32 *minor_status, gss_ctx_id_t *context_handle, gss_buffer_t output_token) { OM_uint32 major_status = GSS_S_COMPLETE; if (output_token != GSS_C_NO_BUFFER) { output_token->length = 0; output_token->value = NULL; } *minor_status = 0; if (*context_handle != GSS_C_NO_CONTEXT)...
4,230
160,650
0
void RenderFrameImpl::OnCopyToFindPboard() { if (frame_->HasSelection()) { if (!clipboard_host_) { auto* platform = RenderThreadImpl::current_blink_platform_impl(); platform->GetConnector()->BindInterface(platform->GetBrowserServiceName(), &clipboard_host_...
4,231
114,536
0
void WebPluginProxy::CreateDIBAndCanvasFromHandle( const TransportDIB::Handle& dib_handle, const gfx::Rect& window_rect, scoped_ptr<TransportDIB>* dib_out, scoped_ptr<skia::PlatformCanvas>* canvas_out) { TransportDIB* dib = TransportDIB::Map(dib_handle); skia::PlatformCanvas* canvas = NULL; if (di...
4,232
114,583
0
base::WaitableEvent* RenderThreadImpl::GetShutDownEvent() { return ChildProcess::current()->GetShutDownEvent(); }
4,233
133,878
0
FormAssociatedElement::FormAssociatedElement() : m_form(0) { }
4,234
118,928
0
const std::string& WebContentsImpl::GetUserAgentOverride() const { return renderer_preferences_.user_agent_override; }
4,235
130,756
0
static void enforcedRangeLongLongAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectV8Internal::enforcedRangeLongLongAttrAttributeSetter(jsValue, info); TRACE_EVENT_SET...
4,236
122,217
0
CompositingReasons RenderLayerCompositor::subtreeReasonsForCompositing(RenderObject* renderer, bool hasCompositedDescendants, bool has3DTransformedDescendants) const { CompositingReasons subtreeReasons = CompositingReasonNone; RenderLayer* layer = toRenderBoxModelObject(renderer)->layer(); if (hasComposit...
4,237
141,397
0
Scrollbar* PaintLayerScrollableArea::ScrollbarManager::CreateScrollbar( ScrollbarOrientation orientation) { DCHECK(orientation == kHorizontalScrollbar ? !h_bar_is_attached_ : !v_bar_is_attached_); Scrollbar* scrollbar = nullptr; const LayoutObject& style_source = ...
4,238
23,529
0
void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) { struct kvec *iov = buf->head; int scratch_len = buf->buflen - buf->page_len - buf->tail[0].iov_len; BUG_ON(scratch_len < 0); xdr->buf = buf; xdr->iov = iov; xdr->p = (__be32 *)((char *)iov->iov_base + iov->iov_len); xdr->end = (__be3...
4,239
44,939
0
xfs_attr3_leaf_split( struct xfs_da_state *state, struct xfs_da_state_blk *oldblk, struct xfs_da_state_blk *newblk) { xfs_dablk_t blkno; int error; trace_xfs_attr_leaf_split(state->args); /* * Allocate space for a new leaf node. */ ASSERT(oldblk->magic == XFS_ATTR_LEAF_MAGIC); error = xfs_da_grow_inode(s...
4,240
17,176
0
void OxideQQuickWebView::setUrl(const QUrl& url) { Q_D(OxideQQuickWebView); QUrl old_url = this->url(); if (!d->proxy_) { d->construct_props_->load_html = false; d->construct_props_->url = url; d->construct_props_->html.clear(); } else { d->proxy_->setUrl(url); } if (this->url() != old_ur...
4,241
45,958
0
string_modifier_check(struct magic_set *ms, struct magic *m) { if ((ms->flags & MAGIC_CHECK) == 0) return 0; if ((m->type != FILE_REGEX || (m->str_flags & REGEX_LINE_COUNT) == 0) && (m->type != FILE_PSTRING && (m->str_flags & PSTRING_LEN) != 0)) { file_magwarn(ms, "'/BHhLl' modifiers are only allowed ...
4,242
56,197
0
armpmu_start(struct perf_event *event, int flags) { struct arm_pmu *armpmu = to_arm_pmu(event->pmu); struct hw_perf_event *hwc = &event->hw; /* * ARM pmu always has to reprogram the period, so ignore * PERF_EF_RELOAD, see the comment below. */ if (flags & PERF_EF_RELOAD) WARN_ON_ONCE(!(hwc->state & PERF_HE...
4,243
184,517
1
void ChromeInvalidationClient::ReissueRegistrations( invalidation::InvalidationClient* client, const std::string& prefix, int prefix_length) { DCHECK(CalledOnValidThread()); DVLOG(1) << "AllRegistrationsLost"; registration_manager_->MarkAllRegistrationsLost(); }
4,244
66,663
0
static int __init crypto_ccm_module_init(void) { int err; err = crypto_register_template(&crypto_cbcmac_tmpl); if (err) goto out; err = crypto_register_template(&crypto_ccm_base_tmpl); if (err) goto out_undo_cbcmac; err = crypto_register_template(&crypto_ccm_tmpl); if (err) goto out_undo_base; err = c...
4,245
115,651
0
void ChromotingHost::OnStateChange( SignalStrategy::StatusObserver::State state) { DCHECK(context_->network_message_loop()->BelongsToCurrentThread()); if (state == SignalStrategy::StatusObserver::CONNECTED) { LOG(INFO) << "Host connected as " << local_jid_; protocol::JingleSessionManager* server = ...
4,246
143,022
0
void BaseAudioContext::ResolvePromisesForUnpause() { DCHECK(IsAudioThread()); AssertGraphOwner(); if (!is_resolving_resume_promises_ && resume_resolvers_.size() > 0) { is_resolving_resume_promises_ = true; ScheduleMainThreadCleanup(); } }
4,247
21,850
0
static bool valid_cr(int nr) { switch (nr) { case 0: case 2 ... 4: case 8: return true; default: return false; } }
4,248
6,367
0
e1000_link_up(E1000State *s) { s->mac_reg[STATUS] |= E1000_STATUS_LU; s->phy_reg[PHY_STATUS] |= MII_SR_LINK_STATUS; }
4,249
108,065
0
void GLES2DecoderImpl::DoCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei image_size, const void * data) { TextureManager::TextureInfo* info = GetTextureInfoForTarget(target); if (!info) { SetGLError(GL_INV...
4,250
88,957
0
ModuleExport void UnregisterPNMImage(void) { (void) UnregisterMagickInfo("PAM"); (void) UnregisterMagickInfo("PBM"); (void) UnregisterMagickInfo("PGM"); (void) UnregisterMagickInfo("PNM"); (void) UnregisterMagickInfo("PPM"); }
4,251
182,718
1
double GetGPMFSampleRate(size_t handle, uint32_t fourcc, uint32_t flags) { mp4object *mp4 = (mp4object *)handle; if (mp4 == NULL) return 0.0; GPMF_stream metadata_stream, *ms = &metadata_stream; uint32_t teststart = 0; uint32_t testend = mp4->indexcount; double rate = 0.0; if (mp4->indexcount < 1) return 0.0; if (m...
4,252
72,684
0
jas_iccattrval_t *jas_iccattrval_clone(jas_iccattrval_t *attrval) { ++attrval->refcnt; return attrval; }
4,253
140,089
0
void HTMLMediaElement::selectMediaResource() { BLINK_MEDIA_LOG << "selectMediaResource(" << (void*)this << ")"; enum Mode { Object, Attribute, Children, Nothing }; Mode mode = Nothing; if (m_srcObject) { mode = Object; } else if (fastHasAttribute(srcAttr)) { mode = Attribute; } else if (HTMLSource...
4,254
74,505
0
struct regulator *regulator_get_exclusive(struct device *dev, const char *id) { return _regulator_get(dev, id, true, false); }
4,255
38,114
0
static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) { struct lg_drv_data *drv_data = hid_get_drvdata(hdev); if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && (field->flags & HID_MAIN_...
4,256
166,211
0
void MediaStreamManager::HandleRequestDone(const std::string& label, DeviceRequest* request) { DCHECK(RequestDone(*request)); DVLOG(1) << "HandleRequestDone(" << ", {label = " << label << "})"; switch (request->request_type()) { case MEDIA_OPEN_DEVICE_PEP...
4,257
144,754
0
TabVisibility ContentVisibilityToRCVisibility(content::Visibility visibility) { if (visibility == content::Visibility::VISIBLE) return TabVisibility::kForeground; return TabVisibility::kBackground; }
4,258
144,367
0
ExtensionInstallPrompt::GetLocalizedExtensionForDisplay( const base::DictionaryValue* manifest, int flags, const std::string& id, const std::string& localized_name, const std::string& localized_description, std::string* error) { scoped_ptr<base::DictionaryValue> localized_manifest; if (!...
4,259
141,208
0
static void RunAutofocusTask(ExecutionContext* context) { if (!context) return; Document* document = To<Document>(context); if (Element* element = document->AutofocusElement()) { document->SetAutofocusElement(nullptr); element->focus(); } }
4,260
45,111
0
static apr_status_t lua_write_body(request_rec *r, apr_file_t *file, apr_off_t *size) { apr_status_t rc = OK; if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR))) return rc; if (ap_should_client_block(r)) { char argsbuffer[HUGE_STRING_LEN]; apr_off_t rsize, ...
4,261
69,340
0
static int aes_xts_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_XTS_CTX *xctx = EVP_C_DATA(EVP_AES_XTS_CTX,ctx); if (!xctx->xts.key1 || !xctx->xts.key2) return 0; if (!out || !in || len < AES_BLOCK_SIZE) return 0; ...
4,262
60,929
0
lacks_mount (NautilusFile *file) { return (!file->details->mount_is_up_to_date && ( /* Unix mountpoint, could be a GMount */ file->details->is_mountpoint || /* The toplevel directory of something */ (file->details->type == G_FILE_TYPE_DIRE...
4,263
166,895
0
void Performance::NotifyNavigationTimingToObservers() { if (!navigation_timing_) navigation_timing_ = CreateNavigationTimingInstance(); if (navigation_timing_) NotifyObserversOfEntry(*navigation_timing_); }
4,264
177,103
0
void SoftAMRWBEncoder::onQueueFilled(OMX_U32 /* portIndex */) { if (mSignalledError) { return; } List<BufferInfo *> &inQueue = getPortQueue(0); List<BufferInfo *> &outQueue = getPortQueue(1); size_t numBytesPerInputFrame = kNumSamplesPerFrame * sizeof(int16_t); for (;;) { while (mInputSize < numBytesPerInpu...
4,265
179,356
1
static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddrlen, int peer) { struct sockaddr_llc sllc; struct sock *sk = sock->sk; struct llc_sock *llc = llc_sk(sk); int rc = 0; memset(&sllc, 0, sizeof(sllc)); lock_sock(sk); if (sock_flag(sk, SOCK_ZAPPED)) goto out; *uaddrlen = sizeof(sllc); mem...
4,266
13,087
0
cf2_getScaleAndHintFlag( CFF_Decoder* decoder, CF2_Fixed* x_scale, CF2_Fixed* y_scale, FT_Bool* hinted, FT_Bool* scaled ) { FT_ASSERT( decoder && decoder->builder.glyph ); /* note: F...
4,267
154,973
0
void WebGLRenderingContextBase::PrintWarningToConsole(const String& message) { if (!canvas()) return; canvas()->GetDocument().AddConsoleMessage( ConsoleMessage::Create(mojom::ConsoleMessageSource::kRendering, mojom::ConsoleMessageLevel::kWarning, message)); }
4,268
148,130
0
void V8TestObject::VoidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOptionalDictionaryArg"); test_object_v8_internal::VoidMethodOptionalDictionaryArgMethod(info); }
4,269
17,021
0
WebContext::~WebContext() { if (context_.get()) { context_->SetDelegate(nullptr); MediaCaptureDevicesContext::Get(context_.get())->set_client(nullptr); } }
4,270
33,498
0
static ssize_t shmem_file_aio_read(struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos) { struct file *filp = iocb->ki_filp; ssize_t retval; unsigned long seg; size_t count; loff_t *ppos = &iocb->ki_pos; retval = generic_segment_checks(iov, &nr_segs, &count, VERIFY_WRITE); if (retva...
4,271
133,755
0
int EncodeSSLConnectionStatus(int cipher_suite, int compression, int version) { return ((cipher_suite & SSL_CONNECTION_CIPHERSUITE_MASK) << SSL_CONNECTION_CIPHERSUITE_SHIFT) | ((compression & SSL_CONNECTION_COMPRESSION_MASK) << S...
4,272
79,110
0
user_cert_trusted_ca(struct ssh *ssh, struct passwd *pw, struct sshkey *key, struct sshauthopt **authoptsp) { char *ca_fp, *principals_file = NULL; const char *reason; struct sshauthopt *principals_opts = NULL, *cert_opts = NULL; struct sshauthopt *final_opts = NULL; int r, ret = 0, found_principal = 0, use_au...
4,273
74,450
0
static int _regulator_disable(struct regulator_dev *rdev) { int ret = 0; if (WARN(rdev->use_count <= 0, "unbalanced disables for %s\n", rdev_get_name(rdev))) return -EIO; /* are we the last user and permitted to disable ? */ if (rdev->use_count == 1 && (rdev->constraints && !rdev->constraints->always_on...
4,274
96,343
0
ProcessUDPHeader(tTcpIpPacketParsingResult _res, PVOID pIpHeader, ULONG len, USHORT ipHeaderSize) { tTcpIpPacketParsingResult res = _res; ULONG udpDataStart = ipHeaderSize + sizeof(UDPHeader); res.TcpUdp = ppresIsUDP; res.XxpIpHeaderSize = udpDataStart; if (len >= udpDataStart) { UDPHead...
4,275
118,172
0
SkColor DialogNotification::GetBackgroundColor() const { switch (type_) { case DialogNotification::WALLET_USAGE_CONFIRMATION: return SkColorSetRGB(0xf5, 0xf5, 0xf5); case DialogNotification::REQUIRED_ACTION: case DialogNotification::WALLET_ERROR: return SkColorSetRGB(0xfc, 0xf3, 0xbf); cas...
4,276
118,765
0
bool ContainerNode::getLowerRightCorner(FloatPoint& point) const { if (!renderer()) return false; RenderObject* o = renderer(); if (!o->isInline() || o->isReplaced()) { RenderBox* box = toRenderBox(o); point = o->localToAbsolute(LayoutPoint(box->size()), UseTransforms); retu...
4,277
134,150
0
void InputMethodLinuxX11::OnDidChangeFocusedClient( TextInputClient* focused_before, TextInputClient* focused) { input_method_context_->Reset(); input_method_context_->OnTextInputTypeChanged( focused ? focused->GetTextInputType() : TEXT_INPUT_TYPE_NONE); InputMethodBase::OnDidChangeFocusedClient(fo...
4,278
354
0
fz_colorspace_type(fz_context *ctx, fz_colorspace *cs) { return cs ? cs->type : FZ_COLORSPACE_NONE; }
4,279
139,520
0
static bool ExecuteUnderline(LocalFrame& frame, Event*, EditorCommandSource source, const String&) { CSSIdentifierValue* underline = CSSIdentifierValue::Create(CSSValueUnderline); return ExecuteToggleStyleInList( frame, sou...
4,280
65,145
0
static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) { struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; struct inet_sock *inet = inet_sk(sk); struct inet_connection_sock *icsk = inet_csk(sk); struct ipv6_pinfo *np = inet6_sk(sk); struct tcp_sock *tp = tcp_sk(sk); struct ...
4,281
177,456
0
long ContentEncoding::ParseCompressionEntry(long long start, long long size, IMkvReader* pReader, ContentCompression* compression) { assert(pReader); assert(compression); long long pos = start; const long long stop = start + size; bool valid = false; while (pos < stop) { long long id, size; const long st...
4,282
112,737
0
PrintPreviewDataSource::~PrintPreviewDataSource() { }
4,283
147,753
0
static void ReadonlyWindowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestObject* impl = V8TestObject::ToImpl(holder); V8SetReturnValueFast(info, WTF::GetPtr(impl->readonlyWindowAttribute()), impl); }
4,284
172,220
0
void UIPC_Init(void *p_data) { UNUSED(p_data); BTIF_TRACE_DEBUG("UIPC_Init"); memset(&uipc_main, 0, sizeof(tUIPC_MAIN)); uipc_main_init(); uipc_start_main_server_thread(); }
4,285
87,492
0
static void hash_cleanup(Hash* hash) { free(hash->head); free(hash->val); free(hash->chain); free(hash->zeros); free(hash->headz); free(hash->chainz); }
4,286
57,810
0
int x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa, u32 size) { int r; mutex_lock(&kvm->slots_lock); r = __x86_set_memory_region(kvm, id, gpa, size); mutex_unlock(&kvm->slots_lock); return r; }
4,287
109,506
0
SkPoint GetHeaderFooterPosition( float webkit_scale_factor, const printing::PageSizeMargins& page_layout, printing::HorizontalHeaderFooterPosition horizontal_position, printing::VerticalHeaderFooterPosition vertical_position, double offset_to_baseline, double text_width_in_points) { SkScalar x...
4,288
143,292
0
void Document::updateStyleAndLayout() { DCHECK(isMainThread()); ScriptForbiddenScope forbidScript; FrameView* frameView = view(); if (frameView && frameView->isInPerformLayout()) { ASSERT_NOT_REACHED(); return; } if (HTMLFrameOwnerElement* owner = localOwner()) owner->...
4,289
151,154
0
void InspectorNetworkAgent::DidChangeResourcePriority( unsigned long identifier, ResourceLoadPriority load_priority) { String request_id = IdentifiersFactory::RequestId(identifier); GetFrontend()->resourceChangedPriority(request_id, ResourcePriorityJSON(load_priority...
4,290
77,265
0
handle_set_config(struct ofconn *ofconn, const struct ofp_header *oh) { struct ofproto *ofproto = ofconn_get_ofproto(ofconn); struct ofputil_switch_config config; enum ofperr error; error = ofputil_decode_set_config(oh, &config); if (error) { return error; } if (ofconn_get_type(ofc...
4,291
144,624
0
void WebContentsImpl::OnUserInteraction(const blink::WebInputEvent::Type type) { FOR_EACH_OBSERVER(WebContentsObserver, observers_, DidGetUserInteraction(type)); }
4,292
162,726
0
void BaseRenderingContext2D::drawImage( ScriptState* script_state, const CanvasImageSourceUnion& image_source, double x, double y, ExceptionState& exception_state) { CanvasImageSource* image_source_internal = ToImageSourceInternal(image_source, exception_state); if (!image_source_internal)...
4,293
186,036
1
PasswordGenerationUIData GetTestGenerationUIData2() { PasswordForm form; form.form_data = autofill::FormData(); form.form_data.action = GURL("http://www.example2.com/accounts/Login"); form.form_data.origin = GURL("http://www.example2.com/accounts/LoginAuth"); PasswordGenerationUIData data; data.password_for...
4,294
152,999
0
void PDFiumEngine::Form_Print(IPDF_JSPLATFORM* param, FPDF_BOOL ui, int start, int end, FPDF_BOOL silent, FPDF_BOOL shrink_to_fit, FPDF_BOOL...
4,295
64,853
0
static int decode_v2_header(struct iwbmprcontext *rctx, const iw_byte *buf) { unsigned int nplanes; rctx->width = iw_get_ui16le(&buf[4]); rctx->height = iw_get_ui16le(&buf[6]); nplanes = iw_get_ui16le(&buf[8]); if(nplanes!=1) return 0; rctx->bitcount = iw_get_ui16le(&buf[10]); if(rctx->bitcount!=1 && rctx->bitc...
4,296
91,214
0
channel_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) { int rv = 0; int ch; unsigned int set = intf->curr_working_cset; struct ipmi_channel *chans; if ((msg->addr.addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) && (msg->msg.netfn == IPMI_NETFN_APP_RESPONSE) && (msg->msg.cmd == IPMI_GET_CHANNEL...
4,297
62,679
0
static Image *ReadINLINEImage(const ImageInfo *image_info, ExceptionInfo *exception) { Image *image; MagickBooleanType status; register size_t i; size_t quantum; ssize_t count; unsigned char *inline_image; /* Open image file. */ assert(image_info != (const ImageInfo...
4,298
185,512
1
aura::Window* PartialMagnificationController::GetCurrentRootWindow() { aura::Window::Windows root_windows = Shell::GetAllRootWindows(); for (aura::Window::Windows::const_iterator iter = root_windows.begin(); iter != root_windows.end(); ++iter) { aura::Window* root_window = *iter; if (root_window->Con...
4,299