mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Everywhere: Fix more typos
This commit is contained in:
parent
22250780ff
commit
0f66589007
Notes:
sideshowbarker
2024-07-19 00:19:29 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/0f665890079 Pull-request: https://github.com/SerenityOS/serenity/pull/4678
9 changed files with 12 additions and 12 deletions
|
@ -95,7 +95,7 @@ RefPtr<Image> Image::create_from_file(const String& file_path)
|
|||
auto layer = Layer::create_with_size(*image, { width, height }, name);
|
||||
layer->set_location({ json_layer_object.get("locationx").to_i32(), json_layer_object.get("locationy").to_i32() });
|
||||
layer->set_opacity_percent(json_layer_object.get("opacity_percent").to_i32());
|
||||
layer->set_visible(json_layer_object.get("visable").as_bool());
|
||||
layer->set_visible(json_layer_object.get("visible").as_bool());
|
||||
layer->set_selected(json_layer_object.get("selected").as_bool());
|
||||
|
||||
auto bitmap_base64_encoded = json_layer_object.get("bitmap").as_string();
|
||||
|
@ -126,7 +126,7 @@ void Image::save(const String& file_path) const
|
|||
json_layer.add("locationx", layer.location().x());
|
||||
json_layer.add("locationy", layer.location().y());
|
||||
json_layer.add("opacity_percent", layer.opacity_percent());
|
||||
json_layer.add("visable", layer.is_visible());
|
||||
json_layer.add("visible", layer.is_visible());
|
||||
json_layer.add("selected", layer.is_selected());
|
||||
json_layer.add("bitmap", encode_base64(bmp_dumber.dump(layer.bitmap())));
|
||||
}
|
||||
|
|
|
@ -1013,7 +1013,7 @@ u32 Emulator::virt$mmap(u32 params_addr)
|
|||
// The loader needs this functionality to load .data just after .text.
|
||||
// Luckily, since the loader calls mmap for .data right after it calls mmap for .text,
|
||||
// the emulator will allocate a chunk of memory that is just after what we allocated for .text
|
||||
// becuase of the way we currently allocate VM.
|
||||
// because of the way we currently allocate VM.
|
||||
ASSERT(params.addr == final_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ AsyncDeviceRequest::~AsyncDeviceRequest()
|
|||
// At that point no sub-request should be adding more requests and all
|
||||
// sub-requests should be completed (either succeeded, failed, or cancelled).
|
||||
// Which means there should be no more pending sub-requests and the
|
||||
// entire AsyncDeviceRequest hirarchy should be immutable.
|
||||
// entire AsyncDeviceRequest hierarchy should be immutable.
|
||||
for (auto& sub_request : m_sub_requests_complete) {
|
||||
ASSERT(is_completed_result(sub_request.m_result)); // Shouldn't need any locking anymore
|
||||
ASSERT(sub_request.m_parent_request == this);
|
||||
|
|
|
@ -74,7 +74,7 @@ void WaitQueue::wake_one()
|
|||
void WaitQueue::wake_n(u32 wake_count)
|
||||
{
|
||||
if (wake_count == 0)
|
||||
return; // should we assert instaed?
|
||||
return; // should we assert instead?
|
||||
ScopedSpinLock lock(m_lock);
|
||||
#ifdef WAITQUEUE_DEBUG
|
||||
dbg() << "WaitQueue @ " << this << ": wake_n(" << wake_count << ")";
|
||||
|
|
|
@ -315,7 +315,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size)
|
|||
case R_386_NONE:
|
||||
// Apparently most loaders will just skip these?
|
||||
// Seems if the 'link editor' generates one something is funky with your code
|
||||
VERBOSE("None relocation. No symbol, no nothin.\n");
|
||||
VERBOSE("None relocation. No symbol, no nothing.\n");
|
||||
break;
|
||||
case R_386_32: {
|
||||
auto symbol = relocation.symbol();
|
||||
|
@ -356,7 +356,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size)
|
|||
// The "__do_global_dtors_aux" function in libgcc_s.so needs this symbol,
|
||||
// but we do not use that function so we don't actually need to resolve this symbol.
|
||||
// The reason we can't resolve it here is that the symbol is defined in libc.so,
|
||||
// but there's a circular dependecy between libgcc_s.so and libc.so,
|
||||
// but there's a circular dependency between libgcc_s.so and libc.so,
|
||||
// we deal with it by first loading libgcc_s and then libc.
|
||||
// So we cannot find this symbol at this time (libc is not yet loaded).
|
||||
if (m_filename == "libgcc_s.so" && !strcmp(symbol.name(), "__cxa_finalize")) {
|
||||
|
@ -396,7 +396,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size)
|
|||
case R_386_TLS_TPOFF: {
|
||||
VERBOSE("Relocation type: R_386_TLS_TPOFF at offset %X\n", relocation.offset());
|
||||
auto symbol = relocation.symbol();
|
||||
// For some reason, LibC has a R_386_TLS_TPOFF that referes to the undefined symbol.. huh
|
||||
// For some reason, LibC has a R_386_TLS_TPOFF that refers to the undefined symbol.. huh
|
||||
if (relocation.symbol_index() == 0)
|
||||
break;
|
||||
VERBOSE("Symbol index: %d\n", symbol.index());
|
||||
|
|
|
@ -449,7 +449,7 @@ DynamicObject::SymbolLookupResult DynamicObject::lookup_symbol(const ELF::Dynami
|
|||
{
|
||||
VERBOSE("looking up symbol: %s\n", symbol.name());
|
||||
if (!symbol.is_undefined()) {
|
||||
VERBOSE("symbol is defiend in its object\n");
|
||||
VERBOSE("symbol is defined in its object\n");
|
||||
return { true, symbol.value(), (FlatPtr)symbol.address().as_ptr(), &symbol.object() };
|
||||
}
|
||||
ASSERT(m_global_symbol_lookup_func);
|
||||
|
|
|
@ -190,7 +190,7 @@ describe("Array.prototype.sort", () => {
|
|||
expect(() => arr.sort()).toThrow(TestError);
|
||||
});
|
||||
|
||||
test("that it does not use deleteProperty unnecesarily", () => {
|
||||
test("that it does not use deleteProperty unnecessarily", () => {
|
||||
var obj = new Proxy(
|
||||
{ 0: 5, 1: 4, 2: 3, length: 3 },
|
||||
{
|
||||
|
|
|
@ -239,7 +239,7 @@ ALWAYS_INLINE bool PosixExtendedParser::parse_repetition_symbol(ByteCode& byteco
|
|||
if (nongreedy)
|
||||
consume();
|
||||
|
||||
// Note: dont touch match_length_minimum, it's already correct
|
||||
// Note: don't touch match_length_minimum, it's already correct
|
||||
bytecode_to_repeat.insert_bytecode_repetition_min_one(bytecode_to_repeat, !nongreedy);
|
||||
return !has_error();
|
||||
|
||||
|
|
|
@ -400,7 +400,7 @@ static void get_ttglyph_offsets(const ReadonlyBytes& slice, u32 num_points, u32
|
|||
|
||||
void Glyf::Glyph::raster_inner(Rasterizer& rasterizer, Gfx::AffineTransform& affine) const
|
||||
{
|
||||
// Get offets for flags, x, and y.
|
||||
// Get offset for flags, x, and y.
|
||||
u16 num_points = be_u16(m_slice.offset_pointer((m_num_contours - 1) * 2)) + 1;
|
||||
u16 num_instructions = be_u16(m_slice.offset_pointer(m_num_contours * 2));
|
||||
u32 flags_offset = m_num_contours * 2 + 2 + num_instructions;
|
||||
|
|
Loading…
Reference in a new issue