Lines Matching refs:page_view_rect
129 FS_RECTF page_view_rect = pFormFillEnv->GetPageViewRect(pPage.Get()); in GetPopupPos() local
138 static_cast<int>(page_view_rect.bottom - rtAnchor.bottom()); in GetPopupPos()
140 static_cast<int>(rtAnchor.top - page_view_rect.top); in GetPopupPos()
142 if (rtAnchor.left < page_view_rect.left) in GetPopupPos()
143 pPopupRect->left += page_view_rect.left - rtAnchor.left; in GetPopupPos()
144 if (rtAnchor.right() > page_view_rect.right) in GetPopupPos()
145 pPopupRect->left -= rtAnchor.right() - page_view_rect.right; in GetPopupPos()
150 static_cast<int>(page_view_rect.right - rtAnchor.right()); in GetPopupPos()
152 static_cast<int>(rtAnchor.left - page_view_rect.left); in GetPopupPos()
154 if (rtAnchor.bottom() > page_view_rect.bottom) in GetPopupPos()
155 pPopupRect->left += rtAnchor.bottom() - page_view_rect.bottom; in GetPopupPos()
156 if (rtAnchor.top < page_view_rect.top) in GetPopupPos()
157 pPopupRect->left -= page_view_rect.top - rtAnchor.top; in GetPopupPos()
162 static_cast<int>(rtAnchor.top - page_view_rect.top); in GetPopupPos()
164 static_cast<int>(page_view_rect.bottom - rtAnchor.bottom()); in GetPopupPos()
166 if (rtAnchor.right() > page_view_rect.right) in GetPopupPos()
167 pPopupRect->left += rtAnchor.right() - page_view_rect.right; in GetPopupPos()
168 if (rtAnchor.left < page_view_rect.left) in GetPopupPos()
169 pPopupRect->left -= page_view_rect.left - rtAnchor.left; in GetPopupPos()
174 static_cast<int>(rtAnchor.left - page_view_rect.left); in GetPopupPos()
176 static_cast<int>(page_view_rect.right - rtAnchor.right()); in GetPopupPos()
178 if (rtAnchor.top < page_view_rect.top) in GetPopupPos()
179 pPopupRect->left += page_view_rect.top - rtAnchor.top; in GetPopupPos()
180 if (rtAnchor.bottom() > page_view_rect.bottom) in GetPopupPos()
181 pPopupRect->left -= rtAnchor.bottom() - page_view_rect.bottom; in GetPopupPos()