instanceOf
now uses RTTI and checks its answer.
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
Next I'll just remove it, but this commit lets me have something in history such that I can fall back to check for bugs that might get introduced.
This commit is contained in:
@ -798,7 +798,7 @@ bool DilloHtml::HtmlLinkReceiver::click (Widget *widget, int link, int img,
|
||||
/* Change the link color to "visited" as visual feedback */
|
||||
for (Widget *w = widget; w; w = w->getParent()) {
|
||||
_MSG(" ->%s\n", w->getClassName());
|
||||
if (w->instanceOf(dw::Textblock::CLASS_ID)) {
|
||||
if (w->instanceOf<dw::Textblock>()) {
|
||||
((Textblock*)w)->changeLinkColor (link, html->visited_color);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user