#include "FrameTree.h"
#include "FrameView.h"
#include "HTMLElement.h"
+#if ENABLE(TIZEN_FIND_STRING)
+#include "HTMLFrameOwnerElement.h"
+#endif
#include "HistogramSupport.h"
#include "HistoryItem.h"
#include "InspectorController.h"
#include "MediaCanStartListener.h"
#include "Navigator.h"
#include "NetworkStateNotifier.h"
+#if ENABLE(TIZEN_FIND_STRING)
+#include "NodeRenderStyle.h"
+#endif
#include "PageCache.h"
#include "PageGroup.h"
#include "PluginData.h"
if (frame->selection()->isRange())
frameWithSelection = frame;
frame = incrementFrame(frame, true, false);
+#if ENABLE(TIZEN_FIND_STRING)
+ // iframes with "display:none" style should not be searched.
+ if (frame && frame->ownerElement() && !frame->ownerElement()->renderStyle())
+ break;
+#endif
} while (frame);
if (matchRanges->isEmpty())
frame->editor()->setMarkedTextMatchesAreHighlighted(shouldHighlight);
matches += frame->editor()->countMatchesForText(target, 0, options, limit ? (limit - matches) : 0, true, 0);
frame = incrementFrame(frame, true, false);
+#if ENABLE(TIZEN_FIND_STRING)
+ // iframes with "display:none" style should not be searched.
+ if (frame && frame->ownerElement() && !frame->ownerElement()->renderStyle())
+ break;
+#endif
} while (frame);
return matches;
do {
frame->document()->markers()->removeMarkers(DocumentMarker::TextMatch);
frame = incrementFrame(frame, true, false);
+#if ENABLE(TIZEN_FIND_STRING)
+ // iframes with "display:none" style should not be searched.
+ if (frame && frame->ownerElement() && !frame->ownerElement()->renderStyle())
+ break;
+#endif
} while (frame);
}