I think you're confusing the expression f(x,y) with the function f. The former represents a number. What number? That depends on the values of x and y. Since f is a function, the value of f(x,y) (the number represented by that notation) is completely determined by the values of x and y. So we say that f(x,y) is a function of x and y. (It's a function of something, but that doesn't make it a function).
The constraint y=sin x implies that the value of y is completely determined by the value of x. Because of this, we can say that f(x,y) is a function of x (and only x). Whenever an expression is a "function of" something, there's an actual function lurking in the background, in this case the function ##x\mapsto f(x,y)=f(x,\sin x)## with domain ##\mathbb R##. The value of the derivative of this function at x is denoted by ##\frac{d}{dx}f(x,\sin x)##. That's what you computed.
$$\frac{d}{dx}f(x,\sin x)=\lim_{h\to 0}\frac{f(x+h,\sin (x+h))-f(x,\sin x)}{h}.$$ However, ##\frac{\partial f}{\partial x}## is a notation for the function ##D_1f## defined by
$$D_1f(s,t)=\lim_{h\to 0}\frac{f(s+h,t)-f(s,t)}{h},$$ for all ##s,t\in\mathbb R##. So we have
$$\frac{\partial f(x,\sin x)}{\partial x}=\lim_{h\to 0}\frac{f(x+h,\sin x)-f(x,\sin x)}{h}.$$ I think the terminology "partial derivative with respect to x" and accompanying notation ##\frac{\partial f}{\partial x}## is partially responsible for misunderstandings like this. It would be more accurate to talk about the partial derivative with respect to a variable slot, than with respect to a variable.