Pārlūkot izejas kodu

LibHTML: Fire the HtmlView::on_title_change hook after a load finishes

Andreas Kling 5 gadi atpakaļ
vecāks
revīzija
a8297657ab
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      Libraries/LibHTML/HtmlView.cpp

+ 3 - 0
Libraries/LibHTML/HtmlView.cpp

@@ -175,4 +175,7 @@ void HtmlView::load(const URL& url)
     document->normalize();
     document->normalize();
 
 
     set_document(document);
     set_document(document);
+
+    if (on_title_change)
+        on_title_change(document->title());
 }
 }