diff --git a/third_party/blink/renderer/core/editing/ime/edit_context.cc b/third_party/blink/renderer/core/editing/ime/edit_context.cc index 9804883812f88..6f7fb65fe2c98 100644 --- a/third_party/blink/renderer/core/editing/ime/edit_context.cc +++ b/third_party/blink/renderer/core/editing/ime/edit_context.cc @@ -233,6 +233,13 @@ void EditContext::updateCharacterBounds( const HeapVector>& character_bounds) { character_bounds_range_start_ = range_start; + const Member &test1= *character_bounds.data(); + LOG(ERROR)<<"BEGIN-> "<<__func__<<" , character_bounds.size() "<< character_bounds.size() << + " , character_bounds.capacity() "<< character_bounds.capacity() << + " , character_bounds.data() "<< character_bounds.data() << + " , test1.->x() "<< test1->x() << + " tname-> " << base::PlatformThread::GetName()<<"\n"; + TRACE_EVENT1("ime", "EditContext::updateCharacterBounds", "range_start, size", std::to_string(range_start) + ", " + std::to_string(character_bounds.size())); @@ -245,7 +252,7 @@ void EditContext::updateCharacterBounds( ClampToWithNaNTo0(bounds->width()), ClampToWithNaNTo0(bounds->height()))); TRACE_EVENT1("ime", "EditContext::updateCharacterBounds", "charBounds", - result_bounds.ToString()); + result_bounds.ToString()); character_bounds_.push_back(result_bounds); }); } @@ -312,6 +319,13 @@ const HeapVector> EditContext::characterBounds() { return DOMRect::Create(bound.x(), bound.y(), bound.width(), bound.height()); }); + + const Member &test1= *dom_rects.data(); + LOG(ERROR)<<"BEGIN-> "<<__func__<<" , dom_rects.size() "<< dom_rects.size() << + " , dom_rects.capacity() "<< dom_rects.capacity() << + " , dom_rects.data() "<< dom_rects.data() << + " , test1.->x() "<< test1->x() << + " tname-> " << base::PlatformThread::GetName()<<"\n"; return dom_rects; } diff --git a/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc b/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc index 2ad0d2334f517..8e27b092d3592 100644 --- a/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc +++ b/third_party/blink/renderer/core/html/closewatcher/close_watcher.cc @@ -83,6 +83,7 @@ void CloseWatcher::WatcherStack::Add(CloseWatcher* watcher) { if (!AnyEnabledWatchers() && watcher->enabled_) { BindNewPipe(); } + if (watcher_groups_.size() < allowed_groups_) { HeapVector> group; group.push_back(watcher); @@ -92,10 +93,13 @@ void CloseWatcher::WatcherStack::Add(CloseWatcher* watcher) { // allowed_groups_ should always be >= 1 and so if watcher_groups_ is empty // we would have taken the above branch. CHECK(!watcher_groups_.empty()); + //LOG(ERROR)<<__func__<<" , watcher_groups_.back().size() "<< watcher_groups_.back().size() << " tname-> " << base::PlatformThread::GetName()<<"\n"; watcher_groups_.back().push_back(watcher); } next_user_interaction_creates_a_new_allowed_group_ = true; + + } void CloseWatcher::WatcherStack::Remove(CloseWatcher* watcher) { @@ -167,10 +171,25 @@ void CloseWatcher::WatcherStack::Signal() { << "If there aren't watchers enabled, the mojo pipe should be reset"; auto& group = watcher_groups_.back(); for (auto& watcher : base::Reversed(group)) { + LOG(ERROR)<<"============================================================\n"; + Member *it_beg = group.data(); + const uint32_t* uint32_data = reinterpret_cast(it_beg); + LOG(ERROR)<<"BEGIN-> "<<__func__<<" , group.size() "<< group.size() << + " , group.capacity() "<< group.capacity() << + " , group.data() "<< group.data() << + " , uint32_data "<< *uint32_data << + " tname-> " << base::PlatformThread::GetName()<<"\n"; if (!watcher->RequestClose(AllowCancel::kWithUserActivation)) { break; } + uint32_data = reinterpret_cast(it_beg); + LOG(ERROR)<<"AFTER-> "<<__func__<<" , group.size() "<< group.size() << + " , group.capacity() "<< group.capacity() << + " , group.data() "<< group.data() << + " , uint32_data "<< *uint32_data << + " tname-> " << base::PlatformThread::GetName()<<"\n"; } + if (allowed_groups_ > 1) { --allowed_groups_; }