mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Everywhere: Fix a bunch of typos
This commit is contained in:
parent
f377951178
commit
173dcfb7cb
17 changed files with 23 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
||||||
## Name
|
## Name
|
||||||
|
|
||||||
GUI Horizontal Spitter Widget
|
GUI Horizontal Splitter Widget
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
|
@ -8,12 +8,12 @@ Defines a GUI horizontal splitter widget.
|
||||||
|
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
`@GUI::HorizontalSpitter`
|
`@GUI::HorizontalSplitter`
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
```gml
|
```gml
|
||||||
@GUI::HorizontalSpitter {
|
@GUI::HorizontalSplitter {
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Name
|
## Name
|
||||||
|
|
||||||
GML Vertical Spliiter Widget
|
GML Vertical Splitter Widget
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
PlaybackManager::PlaybackManager(NonnullRefPtr<Audio::ConnectionFromClient> connection)
|
PlaybackManager::PlaybackManager(NonnullRefPtr<Audio::ConnectionFromClient> connection)
|
||||||
: m_connection(connection)
|
: m_connection(connection)
|
||||||
{
|
{
|
||||||
// FIXME: The buffer enqueuing should happen on a wholly independend second thread.
|
// FIXME: The buffer enqueuing should happen on a wholly independent second thread.
|
||||||
m_timer = Core::Timer::construct(PlaybackManager::update_rate_ms, [&]() {
|
m_timer = Core::Timer::construct(PlaybackManager::update_rate_ms, [&]() {
|
||||||
if (!m_loader)
|
if (!m_loader)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -194,7 +194,7 @@ void InfinitelyScrollableTableView::mousedown_event(GUI::MouseEvent& event)
|
||||||
{
|
{
|
||||||
// Override the mouse event so that the the cell that is 'clicked' is not
|
// Override the mouse event so that the the cell that is 'clicked' is not
|
||||||
// the one right beneath the cursor but instead the one that is referred to
|
// the one right beneath the cursor but instead the one that is referred to
|
||||||
// when m_is_hovering_cut_zone as it can be the case that the user is targetting
|
// when m_is_hovering_cut_zone as it can be the case that the user is targeting
|
||||||
// a cell yet be outside of its bounding box due to the select_padding.
|
// a cell yet be outside of its bounding box due to the select_padding.
|
||||||
if (m_is_hovering_cut_zone || m_is_hovering_extend_zone) {
|
if (m_is_hovering_cut_zone || m_is_hovering_extend_zone) {
|
||||||
if (m_is_hovering_cut_zone)
|
if (m_is_hovering_cut_zone)
|
||||||
|
|
|
@ -349,7 +349,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
if (auto result = Core::System::unveil("/usr/local/lib", "r"); result.is_error() && result.error().code() != ENOENT)
|
if (auto result = Core::System::unveil("/usr/local/lib", "r"); result.is_error() && result.error().code() != ENOENT)
|
||||||
return result.release_error();
|
return result.release_error();
|
||||||
|
|
||||||
// This file is only accesible when running as root
|
// This file is only accessible when running as root
|
||||||
if (auto result = Core::System::unveil("/boot/Kernel.debug", "r"); result.is_error() && result.error().code() != EACCES)
|
if (auto result = Core::System::unveil("/boot/Kernel.debug", "r"); result.is_error() && result.error().code() != EACCES)
|
||||||
return result.release_error();
|
return result.release_error();
|
||||||
|
|
||||||
|
|
|
@ -647,7 +647,7 @@ void SoftVPU::PSHUFW_mm1_mm2m64_imm8(X86::Instruction const& insn)
|
||||||
|
|
||||||
void SoftVPU::CMPPS_xmm1_xmm2m128_imm8(X86::Instruction const& insn)
|
void SoftVPU::CMPPS_xmm1_xmm2m128_imm8(X86::Instruction const& insn)
|
||||||
{
|
{
|
||||||
// FIXME: Raise Denormal, Invalid Operation (QNaN dependend on imm8)
|
// FIXME: Raise Denormal, Invalid Operation (QNaN dependent on imm8)
|
||||||
XMM& xmm1 = m_xmm[insn.modrm().reg()];
|
XMM& xmm1 = m_xmm[insn.modrm().reg()];
|
||||||
f32x4 xmm2m128;
|
f32x4 xmm2m128;
|
||||||
|
|
||||||
|
@ -689,7 +689,7 @@ void SoftVPU::CMPPS_xmm1_xmm2m128_imm8(X86::Instruction const& insn)
|
||||||
}
|
}
|
||||||
void SoftVPU::CMPSS_xmm1_xmm2m32_imm8(X86::Instruction const& insn)
|
void SoftVPU::CMPSS_xmm1_xmm2m32_imm8(X86::Instruction const& insn)
|
||||||
{
|
{
|
||||||
// FIXME: Raise Denormal, Invalid Operation (QNaN dependend on imm8)
|
// FIXME: Raise Denormal, Invalid Operation (QNaN dependent on imm8)
|
||||||
float xmm1 = m_xmm[insn.modrm().reg()].ps[0];
|
float xmm1 = m_xmm[insn.modrm().reg()].ps[0];
|
||||||
float xmm2m128;
|
float xmm2m128;
|
||||||
bool res;
|
bool res;
|
||||||
|
|
|
@ -305,7 +305,7 @@ void Game::mouseup_event(GUI::MouseEvent& event)
|
||||||
bool rebound = true;
|
bool rebound = true;
|
||||||
if (event.button() == GUI::MouseButton::Secondary) {
|
if (event.button() == GUI::MouseButton::Secondary) {
|
||||||
// This enables the game to move the focused cards to the first possible stack excluding empty stacks.
|
// This enables the game to move the focused cards to the first possible stack excluding empty stacks.
|
||||||
// NOTE: This ignores empty stacks, as the game has no undo button, and a card, which has been moved to an empty stack without any other possibilities is not reversable.
|
// NOTE: This ignores empty stacks, as the game has no undo button, and a card, which has been moved to an empty stack without any other possibilities is not reversible.
|
||||||
for (auto& stack : m_stacks) {
|
for (auto& stack : m_stacks) {
|
||||||
if (stack.is_focused())
|
if (stack.is_focused())
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -97,7 +97,7 @@ void ConnectionFromClient::custom_event(Core::CustomEvent&)
|
||||||
|
|
||||||
m_user_queue->discard_samples(available_samples);
|
m_user_queue->discard_samples(available_samples);
|
||||||
|
|
||||||
// FIXME: Could we recieve interrupts in a good non-IPC way instead?
|
// FIXME: Could we receive interrupts in a good non-IPC way instead?
|
||||||
auto result = m_buffer->try_blocking_enqueue(next_chunk, [this]() {
|
auto result = m_buffer->try_blocking_enqueue(next_chunk, [this]() {
|
||||||
nanosleep(&m_good_sleep_time, nullptr);
|
nanosleep(&m_good_sleep_time, nullptr);
|
||||||
});
|
});
|
||||||
|
|
|
@ -107,7 +107,7 @@ static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, CodeC
|
||||||
return { palette.base_text(), false };
|
return { palette.base_text(), false };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo> const& tokens_info, Gfx::Palette const& pallete)
|
void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo> const& tokens_info, Gfx::Palette const& palette)
|
||||||
{
|
{
|
||||||
Vector<GUI::TextDocumentSpan> spans;
|
Vector<GUI::TextDocumentSpan> spans;
|
||||||
for (auto& token : tokens_info) {
|
for (auto& token : tokens_info) {
|
||||||
|
@ -115,7 +115,7 @@ void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo
|
||||||
GUI::TextDocumentSpan span;
|
GUI::TextDocumentSpan span;
|
||||||
span.range.set_start({ token.start_line, token.start_column });
|
span.range.set_start({ token.start_line, token.start_column });
|
||||||
span.range.set_end({ token.end_line, token.end_column + 1 });
|
span.range.set_end({ token.end_line, token.end_column + 1 });
|
||||||
auto style = style_for_token_type(pallete, token.type);
|
auto style = style_for_token_type(palette, token.type);
|
||||||
span.attributes.color = style.color;
|
span.attributes.color = style.color;
|
||||||
span.attributes.bold = style.bold;
|
span.attributes.bold = style.bold;
|
||||||
span.is_skippable = token.type == CodeComprehension::TokenInfo::SemanticType::Whitespace;
|
span.is_skippable = token.type == CodeComprehension::TokenInfo::SemanticType::Whitespace;
|
||||||
|
|
|
@ -79,7 +79,7 @@ void Button::paint_event(PaintEvent& event)
|
||||||
|
|
||||||
if (m_icon) {
|
if (m_icon) {
|
||||||
auto solid_color = m_icon->solid_color(60);
|
auto solid_color = m_icon->solid_color(60);
|
||||||
// Note: 4.5 is the minimum recommended constrast ratio for text on the web:
|
// Note: 4.5 is the minimum recommended contrast ratio for text on the web:
|
||||||
// (https://developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable/Color_contrast)
|
// (https://developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable/Color_contrast)
|
||||||
// Reusing that threshold here as it seems to work reasonably well.
|
// Reusing that threshold here as it seems to work reasonably well.
|
||||||
bool should_invert_icon = solid_color.has_value() && palette().button().contrast_ratio(*solid_color) < 4.5f;
|
bool should_invert_icon = solid_color.has_value() && palette().button().contrast_ratio(*solid_color) < 4.5f;
|
||||||
|
|
|
@ -356,7 +356,7 @@ Gfx::AntiAliasingPainter::Range Gfx::AntiAliasingPainter::draw_ellipse_part(
|
||||||
return is_circle ? i < q : ib_squared < qa_squared;
|
return is_circle ? i < q : ib_squared < qa_squared;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Draws a 8 octants for a circle or 4 quadrants for a (partial) elipse
|
// Draws a 8 octants for a circle or 4 quadrants for a (partial) ellipse
|
||||||
while (in_symmetric_region()) {
|
while (in_symmetric_region()) {
|
||||||
predict();
|
predict();
|
||||||
minimize();
|
minimize();
|
||||||
|
|
|
@ -327,7 +327,7 @@ void ClassicStylePainter::paint_window_frame(Painter& painter, IntRect const& re
|
||||||
|
|
||||||
if (border_radius > 0) {
|
if (border_radius > 0) {
|
||||||
// FIXME: This will draw "useless" pixels that'll get drawn over by the window contents.
|
// FIXME: This will draw "useless" pixels that'll get drawn over by the window contents.
|
||||||
// preferrably we should just remove the corner pixels from the completely drawn window
|
// preferably we should just remove the corner pixels from the completely drawn window
|
||||||
// but I don't know how to do that yet. :^)
|
// but I don't know how to do that yet. :^)
|
||||||
AntiAliasingPainter aa_painter { painter };
|
AntiAliasingPainter aa_painter { painter };
|
||||||
aa_painter.fill_rect_with_rounded_corners(rect, base_color, border_radius);
|
aa_painter.fill_rect_with_rounded_corners(rect, base_color, border_radius);
|
||||||
|
|
|
@ -112,7 +112,7 @@ ByteBuffer StandardSecurityHandler::compute_user_password_value<false>(ByteBuffe
|
||||||
// described in [Algorithm 2]
|
// described in [Algorithm 2]
|
||||||
auto encryption_key = compute_encryption_key(password_string);
|
auto encryption_key = compute_encryption_key(password_string);
|
||||||
|
|
||||||
// b) Initialize the MD5 hash functino and pass the 32-byte padding string
|
// b) Initialize the MD5 hash function and pass the 32-byte padding string
|
||||||
// shown in step (a) of [Algorithm 2] as input to this function
|
// shown in step (a) of [Algorithm 2] as input to this function
|
||||||
Crypto::Hash::MD5 md5;
|
Crypto::Hash::MD5 md5;
|
||||||
md5.update(standard_encryption_key_padding_bytes);
|
md5.update(standard_encryption_key_padding_bytes);
|
||||||
|
|
|
@ -247,7 +247,7 @@ ALWAYS_INLINE void Device::rasterize(Gfx::IntRect& render_bounds, CB1 set_covera
|
||||||
auto const qy1 = render_bounds_bottom & ~1;
|
auto const qy1 = render_bounds_bottom & ~1;
|
||||||
|
|
||||||
// Rasterize all quads
|
// Rasterize all quads
|
||||||
// FIXME: this could be embarrasingly parallel
|
// FIXME: this could be embarrassingly parallel
|
||||||
for (int qy = qy0; qy <= qy1; qy += 2) {
|
for (int qy = qy0; qy <= qy1; qy += 2) {
|
||||||
for (int qx = qx0; qx <= qx1; qx += 2) {
|
for (int qx = qx0; qx <= qx1; qx += 2) {
|
||||||
PixelQuad quad;
|
PixelQuad quad;
|
||||||
|
|
|
@ -166,7 +166,7 @@ void EventLoop::process()
|
||||||
// - The user agent believes that updating the rendering of the Document's browsing context would have no visible effect, and
|
// - The user agent believes that updating the rendering of the Document's browsing context would have no visible effect, and
|
||||||
// - The Document's map of animation frame callbacks is empty.
|
// - The Document's map of animation frame callbacks is empty.
|
||||||
|
|
||||||
// FIXME: 5. Remove from docs all Document objects for which the user agent believes that it's preferrable to skip updating the rendering for other reasons.
|
// FIXME: 5. Remove from docs all Document objects for which the user agent believes that it's preferable to skip updating the rendering for other reasons.
|
||||||
|
|
||||||
// FIXME: 6. For each fully active Document in docs, flush autofocus candidates for that Document if its browsing context is a top-level browsing context.
|
// FIXME: 6. For each fully active Document in docs, flush autofocus candidates for that Document if its browsing context is a top-level browsing context.
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
|
|
||||||
namespace Web::HTML {
|
namespace Web::HTML {
|
||||||
|
|
||||||
// Form-associated elements should invoke this macro to inject overidden FormAssociatedElement and HTMLElement
|
// Form-associated elements should invoke this macro to inject overridden FormAssociatedElement and HTMLElement
|
||||||
// methods as needed. If your class wished to override an HTMLElement method that is overidden here, use the
|
// methods as needed. If your class wished to override an HTMLElement method that is overridden here, use the
|
||||||
// following methods instead:
|
// following methods instead:
|
||||||
//
|
//
|
||||||
// HTMLElement::inserted() -> Use form_associated_element_was_inserted()
|
// HTMLElement::inserted() -> Use form_associated_element_was_inserted()
|
||||||
|
|
|
@ -111,7 +111,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
|
||||||
if (is_shared)
|
if (is_shared)
|
||||||
TODO();
|
TODO();
|
||||||
|
|
||||||
// FIXME: Make and use subclasses of WorkerGlobalScope, however this requries JS::GlobalObject to
|
// FIXME: Make and use subclasses of WorkerGlobalScope, however this requires JS::GlobalObject to
|
||||||
// play nicely with the IDL interpreter, to make spec-compliant extensions, which it currently does not.
|
// play nicely with the IDL interpreter, to make spec-compliant extensions, which it currently does not.
|
||||||
m_worker_scope = m_worker_vm->heap().allocate_without_global_object<JS::GlobalObject>();
|
m_worker_scope = m_worker_vm->heap().allocate_without_global_object<JS::GlobalObject>();
|
||||||
m_worker_scope->initialize_global_object();
|
m_worker_scope->initialize_global_object();
|
||||||
|
@ -171,7 +171,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
|
||||||
m_inner_settings = WorkerEnvironmentSettingsObject::setup(*m_document, m_execution_context);
|
m_inner_settings = WorkerEnvironmentSettingsObject::setup(*m_document, m_execution_context);
|
||||||
|
|
||||||
// 10. Set worker global scope's name to the value of options's name member.
|
// 10. Set worker global scope's name to the value of options's name member.
|
||||||
// FIXME: name propery requires the SharedWorkerGlobalScope or DedicatedWorkerGlobalScope child class to be used
|
// FIXME: name property requires the SharedWorkerGlobalScope or DedicatedWorkerGlobalScope child class to be used
|
||||||
|
|
||||||
// 11. Append owner to worker global scope's owner set.
|
// 11. Append owner to worker global scope's owner set.
|
||||||
// FIXME: support for 'owner' set on WorkerGlobalScope
|
// FIXME: support for 'owner' set on WorkerGlobalScope
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue